2021-05-17 15:39:46 +02:00
|
|
|
name: Run tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-05-29 11:18:09 +02:00
|
|
|
branches: [ master, main, nightly ]
|
2021-05-17 15:39:46 +02:00
|
|
|
pull_request:
|
2023-05-29 11:18:09 +02:00
|
|
|
branches: [ master, main, nightly ]
|
2021-05-17 15:39:46 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
tests:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-11-29 15:50:22 +01:00
|
|
|
- uses: actions/checkout@v3
|
2021-05-17 15:39:46 +02:00
|
|
|
- name: Set up Python
|
2022-11-29 15:50:22 +01:00
|
|
|
uses: actions/setup-python@v3
|
2021-05-17 15:39:46 +02:00
|
|
|
with:
|
2023-04-28 10:13:46 +02:00
|
|
|
python-version: 3.8
|
2023-04-28 09:37:03 +02:00
|
|
|
cache: 'pip'
|
2023-04-28 11:15:01 +02:00
|
|
|
cache-dependency-path: requirements/dev.txt
|
2021-05-17 15:39:46 +02:00
|
|
|
- name: Upgrade pip
|
2023-04-28 10:13:46 +02:00
|
|
|
run: python -m pip install --upgrade pip setuptools
|
2021-05-17 15:39:46 +02:00
|
|
|
- name: Install dependencies
|
|
|
|
run: pip install -r requirements/dev.txt
|
|
|
|
- name: Static code analysis
|
|
|
|
run: make test-lint
|
|
|
|
- name: Python unit tests
|
|
|
|
run: make test-unit
|
|
|
|
- name: Static type checks
|
|
|
|
run: make test-types
|
|
|
|
- name: Code formatting
|
|
|
|
run: make test-format
|
|
|
|
- name: Package tests
|
|
|
|
run: make test-pythonpackage
|
2021-09-16 11:48:59 +02:00
|
|
|
- name: Install docs dependencies
|
|
|
|
run: pip install -r requirements/docs.txt
|
|
|
|
- name: Build docs
|
|
|
|
run: make docs
|