Skip to content

ci: Add automation

ci: Add automation #1

name: Run Python unit tests
on:
push:
branches:
- main
- release/**
- pre-release/**
pull_request:
types: [opened, edited, synchronize, reopened]
jobs:
unit_tests:
name: Run unit tests
runs-on: ubuntu-latest
permissions:
# Allow the coverage report to be generated and posted
pull-requests: write
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
id: python_setup
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install dependencies
id: dependencies
run: |
pip install --upgrade pip
pip install -e '.[test, build]'
- name: Run unit tests
id: pytest
run: |
pytest tests