Repository navigation
67 lines (61 loc) · 1.51 KB
/
Copy pathmain.yaml
File metadata and controls
67 lines (61 loc) · 1.51 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
name: CI
on:
push:
branches:
- dev
pull_request:
branches:
- dev
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci-basic:
strategy:
fail-fast: false
runs-on: ubuntu-latest
container: fedorapython/fedora-python-tox:latest
steps:
- uses: actions/checkout@v7
- name: Install base Python dependencies
run: |
python3 -m pip install --upgrade tox
- name: Execute tox
run: |
tox -e format,lint,poetry
ci-unittests:
strategy:
fail-fast: false
matrix:
include:
- toxenv: py38
fedver: f41
- toxenv: py39
fedver: latest
- toxenv: py310
fedver: latest
- toxenv: py311
fedver: latest
- toxenv: py312
fedver: latest
- toxenv: py313
fedver: latest
- toxenv: py314
fedver: latest
- toxenv: py315
fedver: latest
runs-on: ubuntu-latest
container: "fedorapython/fedora-python-tox:${{ matrix.fedver }}"
steps:
- uses: actions/checkout@v7
- name: Install RPM dependencies
run: |
dnf install -y libpq-devel postgresql-server libffi-devel
- name: Set up testrunner user
run: |
useradd testrunner
chown -R testrunner: .
- name: Execute tox
run: |
su testrunner -c 'tox -e ${{ matrix.toxenv }}'