CI/CD for 3/merge #84
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: Lint and test | |
run-name: CI/CD for ${{ github.ref_name }} | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' #don't cache this, it will create a cache without all the good stuff | |
- run: pip install pre-commit pyproject-flake8 | |
- run: pre-commit install | |
- run: pre-commit run --all-files | |
check_dependency_versions: | |
needs: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: ./test_dependency_versions.sh | |
test: | |
needs: check_dependency_versions | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
- run: pip install -r test_requirements.txt | |
- run: pip install -e . | |
- run: pytest -vvv --cov-report=term-missing --cov-config=pyproject.toml --cov=emu_mps --cov=emu_base --cov=emu_sv --cov=optimatrix | |
- run: pytest --nbmake **/**/**/*.ipynb | |
- run: readme-cov |