-
Notifications
You must be signed in to change notification settings - Fork 5
115 lines (107 loc) · 2.84 KB
/
ci.yml
File metadata and controls
115 lines (107 loc) · 2.84 KB
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# This workflow will install Python dependencies and run internal tests with a representative selection of OS and Python platforms
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Continuous Integration
# No need for more than read permission
permissions:
contents: read
on:
# Triggers the workflow on push or pull request events but only for this git branch
push:
paths-ignore:
- 'README'
- 'COPYING'
- 'NEWS'
- '*.txt'
- 'doc/**'
- 'doc-src/**'
- 'user-projects/**'
- 'state/**'
- 'certs/**'
- 'MiG-certificates/**'
- 'mig/images/**'
- 'mig/assets/**'
- 'mig/src/**'
- 'mig/apache/**'
- 'mig/bin/**'
branches:
- experimental
- next
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
paths-ignore:
- 'README'
- 'COPYING'
- 'NEWS'
- '*.txt'
- 'doc/**'
- 'doc-src/**'
- 'user-projects/**'
- 'state/**'
- 'certs/**'
- 'MiG-certificates/**'
- 'mig/images/**'
- 'mig/assets/**'
- 'mig/src/**'
- 'mig/apache/**'
- 'mig/bin/**'
branches:
- experimental
- next
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
# NOTE: We rely on containers for everything to get version consistency
python3-latest:
name: Run internal tests in latest stable python3
runs-on: ubuntu-latest
container:
image: python:3
volumes:
- .:/usr/src/app
steps:
- name: Check out source repository
uses: actions/checkout@v4
- name: Setup environment
run: |
make PYTHON_BIN=python3 dependencies
- name: Run tests
run: |
make PYTHON_BIN=python3 unittest
python3-rocky10:
name: Run internal tests in default python3 on Rocky10
runs-on: ubuntu-latest
container:
image: rockylinux/rockylinux:10
steps:
- name: Check out source repository
uses: actions/checkout@v4
- name: Set up Python 3 and make with DNF
run: |
dnf install -y python3 python3-pip make
- name: Setup environment
run: |
make dependencies
- name: Run tests
run: |
make unittest
python3-rocky9:
name: Run internal tests in default python3 on Rocky9
runs-on: ubuntu-latest
container:
image: rockylinux/rockylinux:9
steps:
- name: Check out source repository
uses: actions/checkout@v4
- name: Set up Python 3 and make with DNF
run: |
dnf install -y python3 python3-pip make
- name: Setup environment
run: |
make dependencies
- name: Run tests
run: |
make unittest