fix DynamicAlphaCombine #272
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: Run CI | |
on: [ push, pull_request ] | |
jobs: | |
build: | |
name: Run pylint and tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout git repository including submodules | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
cache: "pip" | |
- name: Setup pip, install dependencies with test and linting requirements | |
run: | | |
python -m pip install --upgrade pip | |
pip install --upgrade -r ./tests/requirements_test.txt | |
pip install --force-reinstall -e . | |
- name: Analysing the code with black | |
run: | | |
black . | |
- name: Analysing the code with pylint | |
run: | | |
pylint . --rcfile .pylintrc | |
- name: Test using unittest and run coverage | |
run: | | |
TQDM_DISABLE=1 coverage run -m unittest discover -s ./tests/ -p "test__*.py" | |
- name: Create Coverage Report | |
run: | | |
coverage xml --quiet | |
coverage report |