Merge pull request #60 from HC-ONLINE/release-please--branches--main #205
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
| name: CI | |
| on: | |
| push: | |
| branches: [main, CI-testing] | |
| pull_request: | |
| branches: [main, CI-testing] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: "pip" | |
| - name: Install dependencies | |
| run: | | |
| pip install --upgrade pip | |
| # install both dev and api extras so that the full test | |
| # matrix (unit + integration + API) can execute. | |
| pip install -e ".[api,dev]" | |
| - name: Ruff | |
| run: | | |
| ruff check . | |
| ruff format --check . | |
| - name: Pyright | |
| run: pyright | |
| - name: Pytest | |
| run: | | |
| PYTHONPATH=src pytest -m "not integration" --cov --cov-report=xml --cov-report=term |