Skip to content

Commit

Permalink
Merge branch 'main' of github.com:alxwnth/pygolomb
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex committed May 8, 2024
2 parents 20f7c86 + 93409eb commit 07f086c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: PyTest with coverage

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
name: Test python API
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Run image
uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.7.1"
- name: Install requirements
run: poetry install
- name: Run tests and collect coverage
run: poetry run pytest --cov .
- name: Upload coverage reports to Codecov
run: |
curl -Os https://cli.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov --verbose upload-process --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} -n 'service'-${{ github.run_id }} -F service -f coverage-service.xml

0 comments on commit 07f086c

Please sign in to comment.