forked from RedHatQE/newa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jesus Checa Hidalgo
committed
Mar 20, 2024
1 parent
2019bf7
commit a04a55c
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: CI | ||
on: | ||
push: | ||
pull_request: | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.9", "3.11", "3.12"] | ||
container: | ||
image: "fedora:latest" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: "Install python ${{ matrix.python-version }}" | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Set up pip cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pip | ||
key: pip-${{ hashFiles('pyproject.toml') }} | ||
restore-keys: pip- | ||
- name: "Install dependencies" | ||
run: | | ||
dnf -y install make | ||
python -m pip install hatch | ||
make system/fedora | ||
- name: Run unittests | ||
run: hatch run +py=${{ matrix.python-version }} test:unit | ||
# https://projects.gentoo.org/python/guide/distutils.html#setuptools-scm-flit-scm-hatch-vcs-pdm-backend-and-snapshots | ||
env: | ||
SETUPTOOLS_SCM_PRETEND_VERSION: 0.1.0 |