zeechimp's picture
Create .github/workflows/ci.yml
ba23937 verified
Raw History Blame Contribute Delete
1.4 kB
name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install package with dev extras
run: |
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"
- name: Run self-test
run: python -m frontier_check --selftest
- name: Run test suite
run: pytest -q
- name: Lint with ruff
run: ruff check frontier_check tests
smoke:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install package
run: python -m pip install -e .
- name: Run flagship claim
run: |
frontier-check --strict \
"The effective rank of a 20x448 matrix can be 75"
- name: Run TCTN claim
run: |
frontier-check --strict \
"The dragonfly TCTN has effective rank 2.76 over 448 cells, because the bank is a matched filter"