Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0768a05

Browse files
committedApr 11, 2024·
CI: fix coverage submission.
1 parent 84dff93 commit 0768a05

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed
 

‎.editorconfig

+3
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ indent_size = 4
77
max_line_length = 100
88
trim_trailing_whitespace = true
99
insert_final_newline = true
10+
11+
[.github/*.yaml]
12+
indent_size = 2

‎.github/workflows/main.yaml

+11-5
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ jobs:
4141
sudo add-apt-repository 'deb http://ppa.launchpad.net/sri-csl/formal-methods/ubuntu bionic main'
4242
sudo apt-get update
4343
sudo apt-get install yices2
44-
pip install codecov build
4544
pdm install --dev
4645
- name: Cache YoWASP build products
4746
uses: actions/cache@v4
@@ -53,9 +52,16 @@ jobs:
5352
- name: Run tests
5453
run: |
5554
pdm run test
56-
- name: Submit code coverage
57-
run: |
58-
codecov
55+
pdm run python -m coverage xml
56+
- name: Upload coverage to Codecov
57+
uses: codecov/codecov-action@v4
58+
env:
59+
PYTHON: ${{ matrix.python-version }}
60+
with:
61+
use_oidc: true
62+
token: ${{ secrets.CODECOV_TOKEN }}
63+
env_vars: PYTHON
64+
file: ./coverage.xml
5965

6066
smoketest: # If we plug this into downstream projects, does magic smoke escape?
6167
runs-on: ubuntu-latest
@@ -260,4 +266,4 @@ jobs:
260266
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
261267
with:
262268
tag_name: ${{ github.ref_name }}
263-
release_name: ${{ steps.metadata.outputs.name }}
269+
release_name: ${{ steps.metadata.outputs.name }}

0 commit comments

Comments
 (0)
Please sign in to comment.