Skip to content

website link and latex formatting fix #7

website link and latex formatting fix

website link and latex formatting fix #7

Workflow file for this run

name: Tests
on:
push:
pull_request:
jobs:
lint:
name: Lint and Format
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Install lint tools
run: |
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"
- name: Ruff
run: ruff check .
- name: Black
run: black --check .
tests:
name: Tests Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install package
run: |
python -m pip install --upgrade pip
python -m pip install -e ".[test]"
- name: Run tests
run: python -m pytest -q
circuit-extras:
name: Circuit Extras
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Install package with circuit extras
run: |
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"
- name: Run tests
run: python -m pytest -q
package-smoke:
name: Package Smoke
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Build package
run: |
python -m pip install --upgrade pip
python -m pip install build
python -m build
- name: Install wheel and run console command
run: |
python -m venv /tmp/shors-wheel
/tmp/shors-wheel/bin/python -m pip install --upgrade pip
/tmp/shors-wheel/bin/python -m pip install dist/*.whl
/tmp/shors-wheel/bin/shors-sim --N 15 --a 2 --json