-
Notifications
You must be signed in to change notification settings - Fork 8
78 lines (68 loc) · 1.84 KB
/
main.yaml
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
---
# SPDX-FileCopyrightText: Contributors to the Fedora Project
#
# SPDX-License-Identifier: MIT
name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
ci-smoketests:
strategy:
fail-fast: false
runs-on: ubuntu-latest
container: fedorapython/fedora-python-tox:latest
steps:
- uses: actions/checkout@v4
- name: Install absolufy and poetry
run: |
python3 -m pip install absolufy-imports poetry
- name: Enforce relative imports in package
run: >
find rpmautospec -name \*.py -print0
| xargs -0 absolufy-imports --never
- name: Check Poetry lock file consistency
run: >
poetry lock --check
ci-testsuite:
strategy:
fail-fast: false
matrix:
include:
- pyver: 39
fedver: f38
- pyver: 310
fedver: f38
- pyver: 311
fedver: f38
- pyver: 312
fedver: latest
- pyver: 313
fedver: latest
runs-on: ubuntu-latest
container: "fedorapython/fedora-python-tox:${{ matrix.fedver }}"
steps:
- uses: actions/checkout@v4
- name: Mark the directory as safe for git
run: git config --global --add safe.directory $PWD
- name: Install basic RPM dependencies
run: >
dnf -y install
gcc
glibc-langpack-de
glibc-langpack-en
krb5-devel
libffi-devel
poetry
python3-rpm
rpm
rpm-build
- name: run tests through tox
run: "tox -e py${{ matrix.pyver }}"
ci-statictests:
strategy:
fail-fast: false
runs-on: ubuntu-latest
container: fedorapython/fedora-python-tox:latest
steps:
- uses: actions/checkout@v4
- name: run tests through tox
run: "tox -e format,lint"