fixing possibly undefined reference #937
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: tests | |
on: | |
push: | |
branches-ignore: | |
- "*docs*" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
# max-parallel: 2 | |
matrix: | |
python-version: ['3.10', '3.11', '3.12'] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python ${{ matrix.python-version }} 🐍 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
chmod +x install.sh | |
bash -l ./install.sh -n smefit_installation | |
- name: Lint with pylint | |
run: | | |
source /usr/share/miniconda/bin/activate /usr/share/miniconda/envs/smefit_installation | |
pip install pylint | |
# Search for actual errors | |
pylint src/smefit -E | |
# For warnings instead return always zero | |
pylint src/smefit --exit-zero | |
- name: Test with pytest | |
run: | | |
# add test packages | |
source /usr/share/miniconda/bin/activate /usr/share/miniconda/envs/smefit_installation | |
pip install pytest | |
pip install pytest-cov | |
pip install pytest-env | |
pytest | |
# - name: Upload coverage to Codecov | |
# uses: codecov/codecov-action@v4 | |
# with: | |
# token: ${{ secrets.CODECOV_TOKEN }} | |
# file: ./coverage.xml | |
# flags: unittests | |
# name: codecov-umbrella | |
# fail_ci_if_error: true |