-
Notifications
You must be signed in to change notification settings - Fork 4
57 lines (47 loc) · 1.29 KB
/
dry-run.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
48
49
50
51
52
53
54
55
56
57
name: Dry run
on:
push:
branches: [ "main" ]
paths:
- 'automation/pyproject.toml'
- 'automation/poetry.lock'
- '**.py'
- 'config.yaml'
- '.github/workflows/dry-run.yml'
pull_request:
branches: [ "main" ]
paths:
- 'automation/pyproject.toml'
- 'automation/poetry.lock'
- '**.py'
- 'config.yaml'
- '.github/workflows/dry-run.yml'
jobs:
process-translations:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
cache: "poetry"
cache-dependency-path: automation/poetry.lock
- name: Install library and dependencies
run: |
cd automation
poetry install --no-interaction --no-dev
- name: Fetch translations
run: |
git submodule init
git submodule update --remote
- name: Process po files
run: |
cd automation
poetry run process ../
- name: Generate diagram
run: |
cd automation
poetry run progress_diagram ../translations-backup/translations/dwarf-fortress-steam ../images/dwarf-fortress-steam-short.svg --minimal-percent=1 --width=600 --height=320