Skip to content

Commit

Permalink
Use Fedora since latest libadwaita needed for Gaphor
Browse files Browse the repository at this point in the history
  • Loading branch information
danyeaw committed Jan 8, 2024
1 parent 04765fb commit 87a3b23
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
1 change: 1 addition & 0 deletions .github/constraints.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
poetry==1.7.1
23 changes: 11 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ on:
types: [created, published]

env:
PYTHON_VERSION: '3.11'
POETRY_VERSION: '1.4.1'
python_version: '3.12'

permissions:
contents: read
Expand All @@ -16,6 +15,8 @@ jobs:

test:
runs-on: ubuntu-22.04
container: fedora:39
timeout-minutes: 30
permissions:
contents: write
steps:
Expand All @@ -27,18 +28,16 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Install Linux Dependencies
run: >
sudo apt-get update -qq && sudo apt-get install -qq --no-install-recommends
gir1.2-gtk-4.0 libgirepository1.0-dev libgtksourceview-5-dev libadwaita-1-dev
graphviz
- name: Set up Python ${{ env.PYTHON_VERSION }}
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 ${{ env.POETRY_VERSION }}
run: |
python -m pip install --upgrade pip
pip install poetry==$POETRY_VERSION
poetry config virtualenvs.in-project true
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
Expand Down

0 comments on commit 87a3b23

Please sign in to comment.