forked from paramiko/paramiko
-
Notifications
You must be signed in to change notification settings - Fork 9
84 lines (74 loc) · 2.44 KB
/
linux.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
80
81
82
83
84
name: Linux tests
on:
push: {branches: [master]}
pull_request: {branches: [master]}
jobs:
test:
runs-on: ubuntu-20.04
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
imgtag:
- "python:2.7-buster"
- "python:3.5-buster"
- "python:3.6-buster"
- "python:3.7-buster"
- "python:3.8-bullseye"
- "python:3.9-bullseye"
- "python:3.10-bullseye"
- "python:3.11-bullseye"
- "pypy:2.7-7.3.9"
- "pypy:3.7-7.3.9"
- "pypy:3.8-7.3.9"
crypto_ver:
- "3.2.1"
include:
- {imgtag: "python:2.7-buster", crypto_ver: "2.6.1"}
- {imgtag: "python:3.5-buster", crypto_ver: "2.6.1"}
- {imgtag: "python:3.9-bullseye", crypto_ver: "2.9.2"}
- {imgtag: "python:2.7-buster", crypto_ver: "3.3.2"}
- {imgtag: "python:3.6-buster", crypto_ver: "3.4.8"}
- {imgtag: "python:3.7-buster", crypto_ver: "3.4.8"}
- {imgtag: "python:3.9-bullseye", crypto_ver: "36.0.2"}
- {imgtag: "python:3.10-bullseye", crypto_ver: "37.0.4"}
- {imgtag: "python:3.11-bullseye", crypto_ver: "38.0.4"}
container: "${{matrix.imgtag}}"
steps:
- uses: actions/checkout@v3
- name: Python dependencies
run: |
pip install -r dev-requirements.txt
pip install cryptography==${{matrix.crypto_ver}} PyNaCl
if [ ${{matrix.imgtag}} = python:2.7-buster ] || \
[ ${{matrix.imgtag}} = python:3.7-buster ]; then
export DEBIAN_FRONTEND=noninteractive
apt-get -q -y update
apt-get -q -y install libkrb5-dev krb5-admin-server \
krb5-kdc krb5-user krb5-multidev openssh-server
pip install gssapi==1.5.1 pyasn1==0.4.5 k5test==0.9.2
fi
pip install -e .
pip freeze
- name: Lint
run: |
flake8 --version
flake8 --show-source
- name: Test
run: |
pytest -v
docs:
runs-on: ubuntu-20.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: |
pip install -r doc-requirements.txt
pip install -e .
- name: Build docs
run: |
sphinx-build -v -W sites/docs tmpbuild