-
Notifications
You must be signed in to change notification settings - Fork 20
41 lines (35 loc) · 1020 Bytes
/
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
name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
ci-basic:
strategy:
fail-fast: false
runs-on: ubuntu-latest
container: fedorapython/fedora-python-tox:latest
steps:
- uses: actions/checkout@v4
- name: Install base Python dependencies
run: |
python3 -m pip install --upgrade tox
- name: Execute tox
run: |
tox -e black,flake8,isort,poetry
ci-unittests:
strategy:
fail-fast: false
matrix:
tox-env: ["py38", "py39", "py310", "py311", "py312"]
runs-on: ubuntu-latest
container: fedorapython/fedora-python-tox:latest
steps:
- uses: actions/checkout@v4
- 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.tox-env }}'