Miscellaneous #1272
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
# Modified from GitHub Actions template | |
name: QA | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
Pytest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install uv | |
run: curl -LsSf https://astral.sh/uv/install.sh | sh | |
- name: Install model | |
run: USE_CYTHON=1 uv sync --frozen --extra dev | |
- name: Test with pytest | |
run: | | |
uv run --env-file .env pytest --cov-report xml:cov.xml --cov=ecoli --cov=reconstruction --cov=wholecell --cov=runscripts --durations=0 | |
- name: Code Coverage Report | |
uses: irongut/[email protected] | |
with: | |
filename: cov.xml | |
format: markdown | |
indicators: true | |
output: both | |
- name: Add Coverage PR Comment | |
uses: marocchino/sticky-pull-request-comment@v2 | |
if: github.event_name == 'pull_request' | |
with: | |
recreate: true | |
path: code-coverage-results.md | |
Mypy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install uv | |
run: curl -LsSf https://astral.sh/uv/install.sh | sh | |
- name: Install model | |
run: USE_CYTHON=1 uv sync --frozen --extra dev | |
- name: Mypy | |
run: | | |
uv run --env-file .env mypy | |
Lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install uv | |
run: curl -LsSf https://astral.sh/uv/install.sh | sh | |
- name: Install model | |
run: USE_CYTHON=1 uv sync --frozen --extra dev | |
- name: Ruff | |
run: | | |
uv run --env-file .env ruff check doc ecoli migration wholecell runscripts validation reconstruction |