forked from github.com/blag
69 lines
1.2 KiB
YAML
69 lines
1.2 KiB
YAML
name: CI/CD Pipeline
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
tags:
|
|
- "v**"
|
|
|
|
|
|
jobs:
|
|
test:
|
|
name: Test Python 3.11 on Ubuntu
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: https://github.com/actions/checkout@v4
|
|
- uses: https://github.com/actions/setup-python@v5
|
|
with:
|
|
python-version: "3.11"
|
|
|
|
- run: |
|
|
make venv
|
|
- run: |
|
|
make test
|
|
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: https://github.com/actions/checkout@v4
|
|
- uses: https://github.com/actions/setup-python@v5
|
|
with:
|
|
python-version: "3.11"
|
|
|
|
- run: |
|
|
make venv
|
|
- run: |
|
|
make lint
|
|
|
|
mypy:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: https://github.com/actions/checkout@v4
|
|
- uses: https://github.com/actions/setup-python@v5
|
|
with:
|
|
python-version: "3.11"
|
|
|
|
- run: |
|
|
make venv
|
|
- run: |
|
|
make mypy
|
|
|
|
|
|
test-release:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: https://github.com/actions/checkout@v4
|
|
- uses: https://github.com/actions/setup-python@v5
|
|
with:
|
|
python-version: "3.11"
|
|
|
|
- run: |
|
|
make venv
|
|
- run: |
|
|
make test-release
|