Skip to content

Bump github/codeql-action in the github-action-updates group (#146) #272

Bump github/codeql-action in the github-action-updates group (#146)

Bump github/codeql-action in the github-action-updates group (#146) #272

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:41
timeout-minutes: 30
permissions:
contents: write
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit
- name: Install Linux Dependencies
run: >
dnf install -y gcc git graphviz pkg-config python-launcher upx
mutter dbus-x11 gtk4 gobject-introspection-devel
cairo-gobject-devel gtksourceview5-devel libadwaita-devel cairo-devel
python${{ env.python_version }}-devel
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set ownership of checkout directory
run: chown -R $(id -u):$(id -g) $PWD
- name: Use Python Dependency Cache
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: ~/.cache/pip
key: python${{ env.python_version }}-${{ hashFiles('**/poetry.lock') }}-41
- name: Install Poetry
run: |
python${{ env.python_version }} -m ensurepip
python${{ env.python_version }} -m pip install --constraint=.github/constraints.txt poetry
- name: Configure Poetry
run: poetry config virtualenvs.in-project true
- name: Install Python Dependencies
run: |
poetry lock --no-update
poetry install --no-interaction
- name: Install settings schemas
run: poetry run gaphor install-schemas
- name: Run Tests
env:
XDG_RUNTIME_DIR: /tmp
run: |
eval $(dbus-launch --auto-syntax)
mutter --wayland --no-x11 --sm-disable --headless -- poetry run pytest