Skip to content

Commit

Permalink
CI: fix coverage submission.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed Apr 11, 2024
1 parent 84dff93 commit 0768a05
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
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
16 changes: 11 additions & 5 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,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 +52,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 +266,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 }}

0 comments on commit 0768a05

Please sign in to comment.