iterate through all objects #117
Workflow file for this run
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: Qubit Simulator CI | |
on: push | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
pip install -U pip | |
pip install -r requirements.txt | |
pip install "black>=21.5b0" "coverage>=5.5" "pytest>=2.1.0" | |
- name: Format code with Black | |
run: python3 -m black $(find . -name '*.py') | |
- name: Run tests with coverage | |
run: python3 -m coverage run -m pytest -vv | |
- name: Report coverage | |
run: python3 -m coverage report -m |