chore: Release v0.1.7 #29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # .github/workflows/python-package.yml | |
| name: CI | |
| on: | |
| push: | |
| branches: [ "master", "main" ] # Also works on 'main' branch | |
| pull_request: | |
| branches: [ "master", "main" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] # Adjusted for modern versions | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 # Use the latest version | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 # Use the latest version | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| # This command installs the project from local files in editable mode (-e) | |
| # and includes the [test] dependencies from pyproject.toml | |
| python -m pip install -e ".[test]" | |
| - name: Lint with flake8, black, and isort | |
| run: | | |
| # stop the build if there are Python syntax errors or undefined names | |
| flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
| # Check formatting with black | |
| black --check . | |
| # Check import sorting with isort | |
| isort --check . | |
| - name: Run tests with pytest | |
| run: | | |
| pytest |