update unify cycles #167
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: coverage | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
coverage: | |
if: "!contains(github.event.pull_request.labels.*.name, 'docs-only')" | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python: ["3.12"] | |
steps: | |
- uses: compas-dev/compas-actions.build@v4 | |
with: | |
invoke_lint: false | |
invoke_test: false | |
python: ${{ matrix.python }} | |
- name: Run tests collecting coverage reports | |
run: pytest --cov src/compas --cov-report=html | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v4.0.1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |