Workflow file for this run
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: 🧪 tests | ||
| on: | ||
| workflow_call: | ||
| secrets: | ||
| CODECOV_TOKEN: | ||
| required: false | ||
| push: | ||
| branches-ignore: | ||
| # these are already tested by publish-dev | ||
| - dev | ||
| - dev/* | ||
| - dev-* | ||
| jobs: | ||
| tests: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.10" | ||
| - name: Install dependencies | ||
| run: | | ||
| pip install uv | ||
| uv sync --group dev | ||
| - name: Lint check | ||
| id: lint-check | ||
| # allow unit tests to run even if this fails | ||
| continue-on-error: true | ||
| run: | | ||
| make lint-check | ||
| - name: Run unit tests | ||
| run: | | ||
| make test | ||
| - name: Upload results to Codecov | ||
| if: ${{ secrets.CODECOV_TOKEN != '' }} | ||
| uses: codecov/codecov-action@v5 | ||
| with: | ||
| token: ${{ secrets.CODECOV_TOKEN }} | ||
| report_type: test_results | ||
| - name: Final check | ||
| if: ${{ steps.lint-check.outcome == 'failure' }} | ||
| run: | | ||
| echo Lint check failed, check its log | ||
| exit 1 | ||