-
Notifications
You must be signed in to change notification settings - Fork 5
31 lines (31 loc) · 957 Bytes
/
ci.yml
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
name: CI
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# Do not test in 3.12, the setup-python action is still not stable for
# that version
python-version: ["3.9", "3.11"]
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: "Install dependencies"
run: |
python -m pip install hatch
dnf -y install make
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