Skip to content
Merged
35 changes: 14 additions & 21 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ on:
branches: [main]
release:
types: [published]

jobs:

jobs:
format:
runs-on: ubuntu-latest
steps:
Expand All @@ -36,25 +35,20 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [
"3.9",
"3.10",
"3.11",
"3.12",
"3.13"
]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --upgrade pip
pip install ".[dev]"
- name: Test with pytest
run: python -m pytest tests
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --upgrade pip
pip install ".[dev]"
- name: Test with pytest
run: python -m pytest tests

build_source_dist:
name: Build source distribution
Expand All @@ -77,7 +71,6 @@ jobs:
with:
path: ./dist/*.tar.gz


publish:
name: Publish package
if: startsWith(github.ref, 'refs/tags')
Expand Down
Loading