Skip to content

Commit

Permalink
Merge pull request #78 from gaphor/dependencies
Browse files Browse the repository at this point in the history
Bump dependencies
  • Loading branch information
danyeaw authored Jan 14, 2024
2 parents 3e8524b + 6fdfcf4 commit f9a1588
Show file tree
Hide file tree
Showing 4 changed files with 315 additions and 197 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
32 changes: 18 additions & 14 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 @@ -24,24 +25,27 @@ jobs:
with:
egress-policy: audit

- 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
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set ownership of checkout directory
run: chown -R $(id -u):$(id -g) $PWD
- 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 }}
python-version: ${{ env.python_version }}
- name: Install pipx
run: |
python -m pip install --upgrade pip
pip install poetry==$POETRY_VERSION
poetry config virtualenvs.in-project true
python${{ env.python_version }} -m ensurepip
python${{ env.python_version }} -m pip install pipx
echo "/github/home/.local/bin" >> $GITHUB_PATH
- 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
Loading

0 comments on commit f9a1588

Please sign in to comment.