48 lines
855 B
YAML
48 lines
855 B
YAML
name: Continuous Integration
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
quality:
|
|
name: Quality Assurance
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.11"
|
|
|
|
- name: Upgrade pip
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
|
|
- name: Install project
|
|
run: |
|
|
python -m pip install -e ".[dev]"
|
|
|
|
- name: Ruff
|
|
run: |
|
|
python -m ruff check .
|
|
python -m ruff format --check .
|
|
|
|
- name: MyPy
|
|
run: |
|
|
python -m mypy .
|
|
|
|
- name: Test & Coverage
|
|
run: |
|
|
python -m coverage run -m pytest
|
|
python -m coverage report
|