Skip to content

Commit

Permalink
Use GitHub Actions rather than Zuul for CI
Browse files Browse the repository at this point in the history
Fixes: #3

Signed-off-by: Nils Philippsen <nils@redhat.com>
  • Loading branch information
nphilipp committed Oct 5, 2023
1 parent eca95a7 commit bd72fbe
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 60 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
# 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:
tox-env: ["py39", "py310", "py311", "py312"]
runs-on: ubuntu-latest
container: fedorapython/fedora-python-tox:latest
steps:
- uses: actions/checkout@v4

- name: Mark the directory as safe for git
run: git config --global --add safe.directory $PWD

- name: Install RPM dependencies
run: >
dnf -y install
gcc
glibc-langpack-de
glibc-langpack-en
libffi-devel
libgit2-devel
poetry
- name: Install base Python dependencies
run: |
python3 -m pip install --upgrade tox
- name: run tests through tox
run: "tox -e ${{ matrix.tox-env }}"
60 changes: 0 additions & 60 deletions .zuul.yaml

This file was deleted.

0 comments on commit bd72fbe

Please sign in to comment.