-
Notifications
You must be signed in to change notification settings - Fork 126
51 lines (49 loc) · 1.37 KB
/
compile_card_db.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
name: Compile Card DB
on: [pull_request, workflow_dispatch]
jobs:
compile_card_db:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.9
- run: |
pip install -r requirements.txt
pip install -r dev-requirements.txt
pip install .
- name: Update Languages
run: doit update_languages
- run: |
pip install .
- name: Install PyICU
if: ${{ matrix.os == 'ubuntu-latest'}}
run: |
sudo apt update
sudo apt install python3-icu
- name: test generation with compiled Languages
run: pytest -k "test_languages"
- uses: dorny/paths-filter@v2
id: filter
with:
base: HEAD
filters: |
cardb_target:
- src/domdiv/card_db/**
- name: Create Artifact
uses: actions/upload-artifact@v3
if: steps.filter.outputs.cardb_target == 'true'
with:
name: card_db
path: src/domdiv/card_db/
- name: Save PR number
env:
PR_NUMBER: ${{ github.event.number }}
run: |
mkdir -p ./pr
echo $PR_NUMBER > ./pr/pr_number
- name: Upload PR Artifact
uses: actions/upload-artifact@v3
with:
name: pr_number
path: pr/