Skip to content

Merge pull request #1 from stmsat/env-attestazione #36

Merge pull request #1 from stmsat/env-attestazione

Merge pull request #1 from stmsat/env-attestazione #36

Workflow file for this run

name: Python Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
permissions:
contents: read
jobs:
test:
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt -c constraints.txt
pip install pytest
- name: Install the package locally
run: pip install .
- name: Run tests
run: pytest --maxfail=3 --disable-warnings