Skip to content

Commit

Permalink
Fix CI test script
Browse files Browse the repository at this point in the history
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
  • Loading branch information
jeandet committed Mar 2, 2022
1 parent 628b7f7 commit 7f1d91a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 19 deletions.
24 changes: 6 additions & 18 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,12 @@ jobs:
with:
submodules: true
- name: Install dependencies
run: sudo apt update && sudo apt install -y libcurl4-openssl-dev python3-astropy lcov g++ ninja-build && sudo pip3 install --upgrade meson
run: sudo apt update && sudo apt install -y libcurl4-openssl-dev python3-astropy lcov g++ ninja-build && sudo pip3 install --upgrade twine build meson
- name: Configure with meson
run: meson -Db_coverage=true -Dwith_tests=true . build
run: meson -Db_coverage=true . build
- name: Build (meson)
run: ninja -C build
- name: Run tests (meson)
run: ninja test -C build
- name: Generate Coverage repport
run: |
lcov --capture --directory . --output-file coverage.info
lcov --remove coverage.info '/usr/*' --output-file coverage.info
lcov --list coverage.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.info
flags: unittests
name: codecov-cdfpp
yml: ./codecov.yml
fail_ci_if_error: true
- name: Build Package
run: python3 -m build .
- name: Check wheels
run: twine check dist/*.whl
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project(
'py_tsyganenko',
'cpp', 'c', 'fortran',
version : '0.1.1',
version : '0.1.2',
default_options : ['warning_level=2', 'cpp_std=c++17', 'fortran_std=legacy'],
license : 'GPL3'
)
Expand Down

0 comments on commit 7f1d91a

Please sign in to comment.