| 1 |
name: CI/CD Pipeline |
| 2 |
|
| 3 |
on: |
| 4 |
- push |
| 5 |
- pull_request |
| 6 |
|
| 7 |
jobs: |
| 8 |
test: |
| 9 |
name: Test Python ${{ matrix.python-version }} on ${{ matrix.os }} |
| 10 |
runs-on: ${{ matrix.os }} |
| 11 |
|
| 12 |
strategy: |
| 13 |
fail-fast: false |
| 14 |
matrix: |
| 15 |
os: |
| 16 |
- ubuntu-latest |
| 17 |
- macos-latest |
| 18 |
- windows-latest |
| 19 |
python-version: |
| 20 |
- "3.10" |
| 21 |
- "3.11" |
| 22 |
- "3.12" |
| 23 |
- "3.13" |
| 24 |
|
| 25 |
steps: |
| 26 |
- uses: actions/checkout@v4 |
| 27 |
- uses: actions/setup-python@v5 |
| 28 |
with: |
| 29 |
python-version: ${{ matrix.python-version }} |
| 30 |
|
| 31 |
- run: | |
| 32 |
make venv |
| 33 |
- run: | |
| 34 |
make test |
| 35 |
|
| 36 |
lint: |
| 37 |
runs-on: ubuntu-latest |
| 38 |
|
| 39 |
steps: |
| 40 |
- uses: actions/checkout@v4 |
| 41 |
- uses: actions/setup-python@v5 |
| 42 |
with: |
| 43 |
python-version: "3.x" |
| 44 |
|
| 45 |
- run: | |
| 46 |
make venv |
| 47 |
- run: | |
| 48 |
make lint |
| 49 |
|
| 50 |
mypy: |
| 51 |
runs-on: ubuntu-latest |
| 52 |
|
| 53 |
steps: |
| 54 |
- uses: actions/checkout@v4 |
| 55 |
- uses: actions/setup-python@v5 |
| 56 |
with: |
| 57 |
python-version: "3.x" |
| 58 |
|
| 59 |
- run: | |
| 60 |
make venv |
| 61 |
- run: | |
| 62 |
make mypy |
| 63 |
|
| 64 |
|
| 65 |
test-release: |
| 66 |
runs-on: ubuntu-latest |
| 67 |
|
| 68 |
steps: |
| 69 |
- uses: actions/checkout@v4 |
| 70 |
- uses: actions/setup-python@v5 |
| 71 |
with: |
| 72 |
python-version: "3.x" |
| 73 |
|
| 74 |
- run: | |
| 75 |
make venv |
| 76 |
- run: | |
| 77 |
make test-release |