Skip to content

Fix coveralls.yml

Fix coveralls.yml #2

Workflow file for this run

name: Run tests and upload coverage to Coveralls
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.10.5
- name: Install dependencies
run: |
pip install poetry
poetry install --with dev
- name: Run tests
run: |
poetry run pytest --cov=tusfastapiserver --cov-report=term-missing --cov-report=xml tests/
- name: Upload to Coveralls
run: |
poetry run coveralls --service=github
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}