Repository navigation
66 lines (63 loc) · 2.14 KB
/
Copy pathci.yml
File metadata and controls
66 lines (63 loc) · 2.14 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
name: CI
on:
push:
pull_request:
jobs:
test:
# The hook installer, patch scripts and PE readers target Windows games.
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.12", "3.14"]
env:
QT_QPA_PLATFORM: offscreen
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt ruff
- name: Lint (errors and unused code)
run: python -m ruff check src tests run.py build.py --select F,E9,PLE --target-version py310
- name: Test
run: python -m pytest -q
- name: Runtime self-check
run: python run.py --self-check
test-linux:
# Native Linux Unity builds (and UnityLocalizer itself on Linux / Steam Deck) are experimental:
# this job tells us what breaks, and does not fail the workflow until it has been green once.
runs-on: ubuntu-latest
continue-on-error: true
strategy:
fail-fast: false
matrix:
python-version: ["3.12"]
env:
QT_QPA_PLATFORM: offscreen
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: System libraries for Qt (offscreen) and fonts
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
libegl1 libgl1 libxkbcommon0 libdbus-1-3 libfontconfig1 libglib2.0-0 \
fonts-dejavu-core fonts-liberation fontconfig
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt ruff
- name: Lint (errors and unused code)
run: python -m ruff check src tests run.py build.py --select F,E9,PLE --target-version py310
- name: Test
run: python -m pytest -q
- name: Runtime self-check
run: python run.py --self-check