ci: configura pipeline di integrazione continua
Continuous Integration / Quality Assurance (push) Canceled after 0s
Continuous Integration / Quality Assurance (push) Canceled after 0s
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
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
|
||||
Reference in New Issue
Block a user