Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump dependencies #78

Merged
merged 4 commits into from
Jan 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading