Skip to content

Th/feat/public repo #72

Th/feat/public repo

Th/feat/public repo #72

Workflow file for this run

name: CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
ci:
runs-on: ubuntu-latest
env:
PDM_IGNORE_SAVED_PYTHON: "1"
PDM_CHECK_UPDATE: "0"
QUANTUM_DB_TESTING: "TRUE"
QUANTUM_DB_FILENAME: test_db.sqlite
QUANTUM_DB_USER: postgres
QUANTUM_DB_PASS: example
QUANTUM_DB_HOST: localhost:5432
QUANTUM_DB_PEPPER: ci-test-pepper
QUANTUM_DB_TOKEN_PEPPER: ci-test-token-pepper
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install PDM
run: python -m pip install pdm
- name: Install dependencies
run: pdm install -G dev
- name: Install Ruff
run: python -m pip install ruff
- name: Run Ruff Linter
run: pdm run ruff check .
- name: Type checking
run: pdm run mypy bqp_database_access/
- name: Linting
run: pdm run pylint bqp_database_access/
- name: Tests
run: pdm run pytest
- name: Run Pytest with coverage
run: pdm run pytest -s --maxfail=1 --disable-warnings --cov=bqp_database_access --cov-report=term-missing --cov-report=xml
- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-xml
path: coverage.xml