-
Notifications
You must be signed in to change notification settings - Fork 4
86 lines (78 loc) · 1.96 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
80
81
82
83
84
85
86
name: Continuous Integration
on:
# Triggers the workflow on push or pull request events but only for this git branch
pull_request:
types:
- opened
- reopened
- synchronize
branches:
- edge
push:
branches:
- edge
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: read
jobs:
python3-latest:
runs-on: ubuntu-latest
steps:
- name: Check out repository contents
uses: actions/checkout@v4
- name: Set up latest Python 3.x
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Setup environment
run: |
make dependencies
- name: Run tests
run: |
make unittest
python3-rocky9ish:
runs-on: ubuntu-22.04
steps:
- name: Check out repository contents
uses: actions/checkout@v3
- name: Set up Python 3.9.18 to mimic Rocky9
uses: actions/setup-python@v3
with:
python-version: "3.9.18"
- name: Setup environment
run: |
make dependencies
- name: Run tests
run: |
make unittest
python3-rocky8ish:
runs-on: ubuntu-20.04
steps:
- name: Check out repository contents
uses: actions/checkout@v3
- name: Set up Python 3.6.8 to mimic Rocky8
uses: actions/setup-python@v3
with:
python-version: "3.6.8"
- name: Setup environment
run: |
make dependencies
- name: Run tests
run: |
make unittest
python2-latest:
runs-on: ubuntu-latest
container:
image: python:2
volumes:
- .:/usr/src/app
steps:
- name: Check out repository contents
uses: actions/checkout@v4
- name: Setup environment
run: |
make PYTHON_BIN=python PY=2 dependencies
- name: Run tests
run: |
make PYTHON_BIN=python PY=2 unittest