bugfix: CAB acceptance depended on others #600
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: Coverage | |
on: [push] | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup Python | |
uses: actions/setup-python@master | |
with: | |
python-version: '3.11' | |
- name: Generate coverage report | |
run: | | |
set -xe | |
ulimit -n 50000 | |
python -VV | |
python -m site | |
python -m pip install --upgrade pip setuptools wheel pytest | |
python -m pip install -r requirements.txt | |
python -m pip install -r requirements-dev.txt | |
python -m pip install -e . | |
python -m ipykernel install --user --name=negmas | |
export NEGMAS_SLOW_TEST=True | |
export NEGMAS_BRIDGE_OPS | |
unset NEGMAS_BRIDGE_OPS | |
python -W ignore -m pytest negmas tests || python -W ignore -m pytest --last-failed . | |
export NEGMAS_BRIDGE_OPS=True | |
python -W ignore -m pytest tests/test_genius_bridge.py || python -W ignore -m pytest --last-failed . | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.codecov }} | |
file: ./coverage.xml | |
flags: unittests | |
name: codecov-umbrella | |
fail_ci_if_error: false |