-
Notifications
You must be signed in to change notification settings - Fork 13
79 lines (69 loc) · 1.75 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
---
name: ansible-sign tests
on: # yamllint disable-line rule:truthy
push:
pull_request:
jobs:
python-tests:
name: Python ${{ matrix.python }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
include:
- 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
- python: "3.10"
os: macos-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install system packages (linux)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update && \
sudo apt-get -y install \
tmux \
;
- name: Install system packages (macos)
if: matrix.os == 'macos-latest'
run: |
brew install \
tmux \
gpg \
;
which -a gpg
gpg --version
- name: Install tox
run: pip install tox
- name: Run tests
run: tox -e py3
- name: Ensure docs build
run: tox -e docs
linters:
name: Linters
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: Install tox
run: pip install tox
- name: Run linters
run: tox -e lint