Skip to content

CI/CD for 29/merge #115

CI/CD for 29/merge

CI/CD for 29/merge #115

Workflow file for this run

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'
cache: 'pip'
- 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: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
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