Skip to content

Stage1 MVP State Class #1785

Stage1 MVP State Class

Stage1 MVP State Class #1785

Workflow file for this run

name: Tests
on:
push:
branches:
- develop
pull_request:
paths:
- '.github/workflows/tests.yml'
- 'mrmustard/**'
- 'tests/**'
- 'setup.py'
- 'requirements*'
- 'pytest.ini'
jobs:
pytest:
runs-on: ubuntu-latest
env:
HYPOTHESIS_PROFILE: ci
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v3
- name: Setup python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-dev.txt
pip install wheel pytest pytest-cov --upgrade
pip install .[ray]
# python setup.py bdist_wheel
# pip install dist/*.whl
- name: Run tests
run: python -m pytest tests --cov=mrmustard --cov-report=term-missing --cov-report=xml -p no:warnings --tb=native
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
fail_ci_if_error: true