Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #85
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
name: Test & Upload coverage | |
on: [push] | |
jobs: | |
run_pytest_upload_coverage: | |
runs-on: ubuntu-latest | |
env: | |
OS: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.11" | |
- name: Build myfm | |
run: | | |
pip install --upgrade pip | |
pip install numpy scipy pandas | |
sudo apt-get install lcov | |
FLAGS="-fprofile-arcs -ftest-coverage" | |
CFLAGS="$FLAGS" CXXFLAGS="$FLAGS" pip install -e . | |
- name: Run pytest | |
run: | | |
pip install pytest pytest-cov pytest-mock | |
pytest --cov=./src/myfm tests/ | |
- name: Generate coverage (ubuntu) | |
run: | | |
coverage xml | |
lcov -d `pwd` -c -o coverage.info | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
files: ./coverage.xml,./coverage.info | |
verbose: false | |
env_vars: OS,PYTHON | |
name: codecov-umbrella | |
fail_ci_if_error: false |