fix: code to show example #239
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: Pytests | |
on: | |
pull_request: | |
push: | |
permissions: | |
contents: write | |
checks: write | |
pull-requests: write | |
jobs: | |
pytest: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
# "3.13" is failing at the moment because of cohere | |
# that pinned numpy to 1.26.4 and not compatible with Python 3.13 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v4 | |
with: | |
enable-cache: true | |
python-version: ${{ matrix.python-version }} | |
- name: Install all dependencies | |
run: uv sync --frozen --all-extras --all-groups | |
- name: Tests | |
run: | | |
uv run --frozen --with=coveralls coverage run --source=scope3ai -m pytest -v | |
uv run --frozen --with=coveralls coveralls --output=coverage.json | |
- name: Coveralls Parallel | |
uses: coverallsapp/github-action@v2 | |
with: | |
file: coverage.json | |
flag-name: run-${{ join(matrix.*, '-') }} | |
parallel: true | |
debug: true | |
compare-ref: main | |
finish: | |
needs: pytest | |
if: ${{ always() }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Report Coveralls | |
uses: coverallsapp/github-action@v2 | |
with: | |
parallel-finished: true | |
carryforward: "3.12" | |
debug: true |