-
Notifications
You must be signed in to change notification settings - Fork 292
40 lines (38 loc) · 976 Bytes
/
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
name: CI
on:
pull_request:
branches:
- main
workflow_dispatch:
jobs:
test:
name: CI on python${{ matrix.python }} via ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-20.04
python: "3.10"
- os: ubuntu-22.04
python: "3.10"
- os: ubuntu-22.04
python: "3.11"
- os: ubuntu-24.04
python: "3.12"
steps:
- uses: actions/checkout@v4
- name: Add deadsnakes PPA
if: matrix.os == 'ubuntu-20.04'
run: sudo add-apt-repository --yes ppa:deadsnakes/ppa
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install tox
run: pip install tox
- name: Run flake8
run: tox -e flake8
- name: Run unit tests
run: tox -e py3
- name: Run docs build
run: tox -e docs