release: add public repository metadata #1
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| lint: | |
| 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.11" | |
| - name: Install package and tooling | |
| run: python -m pip install --upgrade pip && python -m pip install -e '.[dev]' | |
| - name: Run Ruff | |
| run: ruff check src tests | |
| - name: Run MyPy | |
| run: mypy src | |
| pytest: | |
| 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.11" | |
| - name: Install package and qiskit test extras | |
| run: python -m pip install --upgrade pip && python -m pip install -e '.[dev,qiskit]' | |
| - name: Run tests without Classiq-only coverage | |
| run: pytest -q --ignore tests/test_classiq_backend.py --ignore tests/test_classiq_emitter.py --ignore tests/test_qspec_validation.py | |
| packaging: | |
| 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.11" | |
| - name: Install package and build tooling | |
| run: python -m pip install --upgrade pip && python -m pip install -e '.[dev]' | |
| - name: Build release artifacts | |
| run: python -m build |