Update several things #19
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: Testing (bot) | |
on: | |
pull_request: | |
branches: [master] | |
paths: | |
- .github/workflows/test-bot.yml | |
- packages/bot/src/** | |
- packages/bot/tests/** | |
- uv.lock | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test-bot: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
version: 0.7 | |
- name: Install dependencies | |
run: uv sync --frozen | |
- name: Run tests | |
run: PYTHON_ENV=test uv run --frozen pytest --cov=src --cov-report=xml | |
working-directory: packages/bot | |
- name: Upload coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: packages/bot/coverage.xml | |
flags: bot | |
name: bot.${{ github.event.number }} |