Skip to content

Use Fedora since latest Fedora needed #129

Use Fedora since latest Fedora needed

Use Fedora since latest Fedora needed #129

Workflow file for this run

name: build
on:
push:
release:
types: [created, published]
env:
python_version: '3.12'
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-22.04
container: fedora:39
timeout-minutes: 30
permissions:
contents: write
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
with:
egress-policy: audit
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Install Linux Dependencies
run: >
dnf install -y gcc git graphviz pkg-config python-launcher upx
xorg-x11-server-Xvfb gtk4 gobject-introspection-devel
cairo-gobject-devel gtksourceview5-devel libadwaita-devel cairo-devel
python${{ env.python_version }}-devel
- name: Set up Python ${{ env.python_version }}
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: ${{ env.python_version }}
- name: Install Poetry
run: pipx install --python ${{ env.python_version }} --pip-args=--constraint=.github/constraints.txt poetry
- name: Install dependencies
run: poetry install --no-interaction
- name: Gaphor self-test
run: xvfb-run poetry run gaphor --self-test
- name: Test
run: xvfb-run poetry run pytest