This commit is contained in:
parent
868c3a4abc
commit
a5222412b4
2 changed files with 29 additions and 2 deletions
26
.forgejo/workflows/tests.yaml
Normal file
26
.forgejo/workflows/tests.yaml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
name: Tests
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, synchronize]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: podman
|
||||
container:
|
||||
image: quay.io/fedora/fedora:latest
|
||||
steps:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
dnf -y install nodejs tox git \
|
||||
python3.9 python3.9-devel \
|
||||
python3.12 python3.12-devel \
|
||||
python3.14 python3.14-devel \
|
||||
python3-rpm krb5-devel gcc
|
||||
- uses: actions/checkout@v3
|
||||
- name: Cache tox environments
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .tox
|
||||
key: tox-${{ hashFiles('tox.ini', 'setup.py') }}
|
||||
- name: Run tests
|
||||
run: tox
|
||||
5
tox.ini
5
tox.ini
|
|
@ -1,5 +1,5 @@
|
|||
[tox]
|
||||
envlist=py27,py36,py38,py39,py310,py311,coverage
|
||||
envlist=py39,py312,py314,py315,coverage
|
||||
skip_missing_interpreters = true
|
||||
minversion=3.12.0
|
||||
|
||||
|
|
@ -10,7 +10,8 @@ deps=
|
|||
freezegun
|
||||
koji
|
||||
kobo>=0.10.0
|
||||
rpm-py-installer
|
||||
rpm
|
||||
setuptools
|
||||
setenv =
|
||||
COVERAGE_FILE={env:COVERAGE_FILE:{toxworkdir}/.coverage.{envname}}
|
||||
commands=
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue