-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (41 loc) · 1.35 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: build
on:
push:
release:
types: [created, published]
env:
PYTHON_VERSION: '3.11'
POETRY_VERSION: '1.4.1'
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-22.04
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: >
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 }}
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
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
- 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