-
Notifications
You must be signed in to change notification settings - Fork 11
67 lines (62 loc) · 2.06 KB
/
test.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: zugbruecke test suite
on:
push: {}
schedule:
- cron: '30 9 7 * *'
jobs:
build:
strategy:
matrix:
os: ["ubuntu-20.04"]
python-version: [
3.7,
3.8,
3.9,
"3.10",
"3.11"
]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install Wine
run: |
sudo dpkg --add-architecture i386
sudo sh -c "curl https://dl.winehq.org/wine-builds/winehq.key | gpg --dearmor > /etc/apt/trusted.gpg.d/winehq.gpg"
sudo sh -c "apt-add-repository \"https://dl.winehq.org/wine-builds/ubuntu\""
sudo apt update
sudo apt-get install -yqq --allow-downgrades libgd3/focal libpcre2-8-0/focal libpcre2-16-0/focal libpcre2-32-0/focal libpcre2-posix2/focal
sudo apt-get purge -yqq libmono* moby* mono* php* libgdiplus libpcre2-posix3 libzip4
echo "/opt/wine-staging/bin" >> $GITHUB_PATH
sudo apt install -y --install-recommends wine-staging="7.17~focal-1" wine-staging-i386="7.17~focal-1" wine-staging-amd64="7.17~focal-1"
- name: Install compiler
run: |
sudo apt-get install -y gcc-mingw-w64-i686
sudo apt-get install -y gcc-mingw-w64-x86-64
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Update Python infrastructure
run: |
python -m pip install --upgrade pip
pip install -U setuptools
- name: Install zugbruecke package
run: |
make install
- name: Pre-check
run: |
wine --version
wine64 --version
i686-w64-mingw32-gcc --version
x86_64-w64-mingw32-gcc --version
python --version
pytest --version
uname -a
lsb_release -a
wenv --version
- name: Build docs
run: |
make docs
- name: Run tests
run: |
ZUGBRUECKE_LOG_LEVEL=100 make test