Merge pull request #289 from signalbot-org/dependabot/uv/uv-e01e180ce9 #286
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: | |
| # tests can be called from other workflows | |
| workflow_call: | |
| # always run tests for every push to main | |
| push: | |
| branches: [main] | |
| # always run tests for every PR | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| prek: | |
| name: Run code checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: j178/prek-action@v2 | |
| unittest: | |
| name: Run unit tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Print workflows | |
| run: ls -R ./.github/workflows/ | |
| - name: Install uv | |
| uses: ./.github/workflows/install-uv | |
| - name: Install dependencies | |
| run: uv sync --locked --group examples | |
| - name: Run unit tests | |
| run: uv run pytest --cov=src/signalbot --cov-branch --cov-report=xml | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v6 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |