-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #194 from benjeffery/fix-codecov
Fix codecov and other CI issues
- Loading branch information
Showing
6 changed files
with
26 additions
and
21 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
version: 2 | ||
version: 2.1 | ||
|
||
orbs: | ||
codecov: codecov/[email protected] | ||
|
||
jobs: | ||
build: | ||
docker: | ||
|
@@ -58,7 +62,10 @@ jobs: | |
command: | | ||
cd python | ||
python3 -m pytest --cov=kastore --cov-report=xml --cov-branch tests | ||
python3 -m codecov -F python | ||
- codecov/upload: | ||
flags: python | ||
token: CODECOV_TOKEN | ||
|
||
- run: | ||
name: Build Python package | ||
|
@@ -92,7 +99,10 @@ jobs: | |
./build-gcc/malloc_tests@exe/kastore.c.gcno \ | ||
./build-gcc/io_tests@exe/kastore.c.gcno \ | ||
./build-gcc/kastore@sha/kastore.c.gcno | ||
codecov -X gcov -F C | ||
- codecov/upload: | ||
flags: C | ||
token: CODECOV_TOKEN | ||
|
||
- run: | ||
name: Install shared library | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,20 +8,18 @@ on: | |
jobs: | ||
pre-commit: | ||
name: Lint | ||
runs-on: ubuntu-18.04 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
- name: install clang-format | ||
run: | | ||
sudo apt-get remove -y clang-6.0 libclang-common-6.0-dev libclang1-6.0 libllvm6.0 | ||
sudo apt-get autoremove | ||
sudo apt-get install clang-format clang-format-6.0 | ||
- uses: pre-commit/[email protected] | ||
pip install clang-format==6.0.1 | ||
- uses: pre-commit/[email protected] | ||
|
||
|
||
test: | ||
|
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
attrs | ||
codecov | ||
coverage | ||
flake8 | ||
hypothesis | ||
|