-
Notifications
You must be signed in to change notification settings - Fork 3
67 lines (59 loc) · 1.52 KB
/
stubtest.yml
File metadata and controls
67 lines (59 loc) · 1.52 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Run stubtest on embedded stubs
on:
workflow_dispatch: # allow to run manually
schedule:
- cron: '0 7 * * 1' # run once a week on monday morning
jobs:
stubtest:
runs-on: ubuntu-24.04
# we always use the latest container from the master branch
# this is fine because we still run all our installs just in case
container:
image: ghcr.io/onegov/onegov-cloud:master
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
defaults:
run:
shell: bash
steps:
- name: Install packages
run: |
apt-get update
apt-get install -y \
wget \
apparmor \
curl \
git-core \
postgresql \
redis \
gcc \
libc-dev \
fonts-liberation \
libappindicator3-1 \
libasound2t64 \
libcairo2-dev \
libdrm2 \
libgbm1 \
libnspr4 \
libnss3 \
libu2f-udev \
libvulkan1 \
libx11-xcb1 \
libxcb-dri3-0 \
libxshmfence1 \
libxss1 \
libxt-dev \
xdg-utils
- name: Checkout repo
uses: actions/checkout@v4
- name: Install dependencies
run: |
source /app/bin/activate
python -m pip install --upgrade uv
uv pip compile setup.cfg -U \
| uv pip install .[mypy] -r /dev/stdin
- name: Stubtest
run: |
source /app/bin/activate
bash stubtest.sh