Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: fix coverage submission #1318

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ indent_size = 4
max_line_length = 100
trim_trailing_whitespace = true
insert_final_newline = true

[.github/*.yaml]
indent_size = 2
18 changes: 13 additions & 5 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ jobs:

test:
runs-on: ubuntu-latest
permissions:
id-token: write
strategy:
matrix:
python-version:
Expand Down Expand Up @@ -41,7 +43,6 @@ jobs:
sudo add-apt-repository 'deb http://ppa.launchpad.net/sri-csl/formal-methods/ubuntu bionic main'
sudo apt-get update
sudo apt-get install yices2
pip install codecov build
pdm install --dev
- name: Cache YoWASP build products
uses: actions/cache@v4
Expand All @@ -53,9 +54,16 @@ jobs:
- name: Run tests
run: |
pdm run test
- name: Submit code coverage
run: |
codecov
pdm run python -m coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
env:
PYTHON: ${{ matrix.python-version }}
with:
use_oidc: true
token: ${{ secrets.CODECOV_TOKEN }}
env_vars: PYTHON
file: ./coverage.xml

smoketest: # If we plug this into downstream projects, does magic smoke escape?
runs-on: ubuntu-latest
Expand Down Expand Up @@ -260,4 +268,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: ${{ steps.metadata.outputs.name }}
release_name: ${{ steps.metadata.outputs.name }}
Loading