Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix running testsuite in CI #8

Merged
merged 1 commit into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
strategy:
fail-fast: false
matrix:
tox-env: ["py39", "py310", "py311", "py312"]
pyver: [39, 310, 311, 312]
runs-on: ubuntu-latest
container: fedorapython/fedora-python-tox:latest
steps:
Expand All @@ -40,19 +40,25 @@ jobs:
- name: Mark the directory as safe for git
run: git config --global --add safe.directory $PWD

- name: Install RPM dependencies
- name: Install basic RPM dependencies
run: >
dnf -y install
gcc
glibc-langpack-de
glibc-langpack-en
krb5-devel
libffi-devel
libgit2-devel
poetry
rpm
rpm-build

- name: Install libgit2-devel 1.7 package
if: ${{ matrix.pyver >= 312 }}
run: dnf --releasever=39 -y install libgit2-devel

- name: Install base Python dependencies
run: |
python3 -m pip install --upgrade tox

- name: run tests through tox
run: "tox -e ${{ matrix.tox-env }}"
run: "tox -e py${{ matrix.pyver }}"
100 changes: 40 additions & 60 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ skip_install = true
sitepackages = false
allowlist_externals = poetry
commands_pre =
pip install -U poetry
poetry install
commands =
poetry run -- pytest --import-mode importlib -o 'addopts=--cov-config .coveragerc --cov=rpmautospec --cov=koji_plugins --cov-report term --cov-report xml --cov-report html' -n auto tests/
Expand Down