-
Notifications
You must be signed in to change notification settings - Fork 109
51 lines (48 loc) · 1.37 KB
/
node.yaml
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
48
49
50
51
name: Run flatpak-node-generator tests
on:
push:
paths:
- node/**
pull_request:
paths:
- node/**
defaults:
run:
working-directory: node
jobs:
check:
strategy:
fail-fast: false
matrix:
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
poetry-version:
- '1.6.1'
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Configure git
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: abatilo/actions-poetry@v2.3.0
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install OS dependencies
run: sudo apt-get update && sudo apt-get install -y flatpak-builder
- name: Install Flatpak dependencies
run: |
flatpak --user remote-add flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak --user install -y flathub \
org.freedesktop.{Platform,Sdk{,.Extension.node{14,16,18,20}}}//24.08
- name: Install dependencies
run: poetry install
- name: Run checks
run: poetry run poe check