-
Notifications
You must be signed in to change notification settings - Fork 56
87 lines (77 loc) · 2.03 KB
/
main.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
87
on:
push:
branches:
- stable
- develop
pull_request:
branches:
- stable
- develop
name: Tests
jobs:
misc_tests:
name: Misc tests
container: fedorapython/fedora-python-tox:latest
steps:
- uses: actions/checkout@v4
- name: Mark the directory as safe for git
run: git config --global --add safe.directory $PWD
- name: Install poetry
run: python3 -m pip install --upgrade poetry
- name: Run tests
run: tox -e ${{ matrix.tox_env }}
strategy:
matrix:
tox_env:
- checks
- licenses
runs-on: ubuntu-latest
unit_test:
name: Unit tests
container: fedorapython/fedora-python-tox:latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
dnf install -y rust cargo openssl-devel
python3 -m pip install poetry>=1.3.0
- name: Install dependencies on Python 3.6
if: ${{ matrix.tox_env == 'py36-unittest' }}
run: |
python3 -m pip install "cryptography<41.0.0" "virtualenv<20.18"
- name: Run tests
run: tox -e ${{ matrix.tox_env }}
strategy:
matrix:
tox_env:
- py36-unittest
- py37-unittest
- py38-unittest
- py39-unittest
- py310-unittest
runs-on: ubuntu-latest
integration_test:
name: Integration tests
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install RabbitMQ
uses: mer-team/[email protected]
with:
RABBITMQ_TAG: "3-management-alpine"
- name: Install Tox
run: pip install tox poetry>=1.2
- name: Run integration tests
# Run tox using the version of Python in `PATH`
run: tox -e py-integration
strategy:
matrix:
python:
- '3.7'
- '3.8'
- '3.9'
- '3.10'
runs-on: ubuntu-latest