chore(deps): bump anthropic from 0.45.0 to 0.45.2 #420
Workflow file for this run
This file contains 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: Python tests | |
on: | |
pull_request_target: | |
push: | |
branches: | |
- main | |
jobs: | |
python-tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# https://devguide.python.org/versions | |
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
permissions: | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install requirements | |
run: | | |
pip install -r .devcontainer/requirements-dev.txt | |
- name: Run tests | |
run: | | |
coverage run --branch --include="src/fish_ai/*.py" -m pytest | |
coverage xml | |
coverage report | |
- name: Report code coverage | |
if: github.event.pull_request.user.login != 'dependabot[bot]' && github.event.pull_request.user.login != 'pre-commit-ci[bot]' | |
uses: orgoro/coverage@v3.2 | |
with: | |
coverageFile: coverage.xml | |
token: ${{ secrets.GITHUB_TOKEN }} | |
results: | |
if: ${{ always() }} | |
runs-on: ubuntu-latest | |
name: Python test results | |
needs: [python-tests] | |
steps: | |
- run: | | |
result="${{ needs.python-tests.result }}" | |
if [[ $result == "success" || $result == "skipped" ]]; then | |
exit 0 | |
else | |
exit 1 | |
fi |