Skip to content

tests

tests #392

Workflow file for this run

name: tests
on:
push:
branches: [main]
paths:
- "src/**.py"
- "setup.py"
- "setup.cfg"
- ".github/workflows/main.yml"
pull_request:
branches-ignore: ["**docker**"]
paths:
- "src/**.py"
- "setup.py"
- "setup.cfg"
- ".github/workflows/main.yml"
schedule:
- cron: "0 0 */7 * *"
jobs:
test:
name: Run unit tests
strategy:
matrix:
python-version: ["3.7", "3.10", "3.12"]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -e .[dev]
- name: Run unit tests
run: pytest