-
Notifications
You must be signed in to change notification settings - Fork 60
71 lines (67 loc) · 1.58 KB
/
tests.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
on:
push:
branches:
- stable
- dev
pull_request:
branches:
- stable
- dev
name: Tests
jobs:
misc_tests:
name: Misc tests
container:
image: fedorapython/fedora-python-tox
options: --user 1001:1001
steps:
- uses: actions/checkout@v4
- name: Run tests
run: tox -e ${{ matrix.tox_env }}
strategy:
matrix:
tox_env:
- lint
- format
- licenses
- security
- docs
runs-on: ubuntu-latest
unit_test:
name: Unit 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: Run tests
run: tox -e ${{ matrix.tox_env }}
strategy:
matrix:
tox_env:
- py39-unittest
- py310-unittest
runs-on: ubuntu-latest
integration_test:
name: Integration tests
steps:
- uses: actions/checkout@v4
- name: Install RabbitMQ
uses: mer-team/[email protected]
with:
RABBITMQ_TAG: "3-management-alpine"
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install Tox
run: pip install tox
- name: Run integration tests
# Run tox using the version of Python in `PATH`
run: tox -e py-integration
strategy:
matrix:
python:
- "3.9"
- "3.10"
runs-on: ubuntu-latest