use uv sync --dev shortcut for uv sync --group dev (#9)
#35
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 --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 | |
| 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 |