-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (36 loc) · 1.1 KB
/
python_ci.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
42
43
name: Python CI
on:
# Runs on all PRs
pull_request:
# Manual Dispatch
workflow_dispatch:
jobs:
lint_python:
name: Python CI
strategy:
fail-fast: false
matrix:
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
# Python 3.9 is on macos-13 but not macos-latest (macos-14-arm64)
# https://github.com/actions/setup-python/issues/696#issuecomment-1637587760
exclude:
- { python: "3.8", os: "macos-latest" }
- { python: "3.9", os: "macos-latest" }
include:
- { python: "3.8", os: "macos-13" }
- { python: "3.9", os: "macos-13" }
runs-on: ${{ matrix.os }}
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install Requirements
run: |
python3 -m pip install --upgrade pip
python3 -m pip install .[dev]
- name: Run tests
run: pytest -n auto