-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 1.01 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: 'CI Tests'
on:
workflow_dispatch:
push:
jobs:
python_test_job:
timeout-minutes: 15
runs-on: ${{ matrix.version.os }}
name: 'Pure Python tests'
strategy:
fail-fast: false
matrix:
version:
- {python: "3.8", os: "ubuntu-latest"}
- {python: "3.9", os: "ubuntu-latest"}
- {python: "3.10", os: "ubuntu-latest"}
- {python: "3.11", os: "ubuntu-latest"}
- {python: "3.12", os: "ubuntu-latest"}
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install graphviz
- name: Set up Python ${{ matrix.version.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.version.python }}
cache: pip
- name: Run Python tests
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -e .[test]
pytest