-
Notifications
You must be signed in to change notification settings - Fork 37
51 lines (42 loc) · 1.48 KB
/
check-migration.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: Check integrity of bilara-data and yuttadhammo texts
on:
schedule:
- cron: '* 13 * * 5'
jobs:
check-migration:
runs-on: ubuntu-20.04
env:
BD_REPO: suttacentral/bilara-data
BD_REPO_BRANCH: published
TEST_REPO: suttacentral/bilara-data-integrity
TEST_REPO_BRANCH: master
PYTHON_VERSION: 3.7.5
steps:
- name: Checkout ${{ env.TEST_REPO }} repo
uses: actions/checkout@v2
with:
repository: ${{ env.TEST_REPO }}
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
ref: ${{ env.TEST_REPO_BRANCH }}
path: bilara-data-integrity
- name: Checkout ${{ env.BD_REPO }} repo
uses: actions/checkout@v2
with:
repository: ${{ env.BD_REPO }}
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
ref: ${{ env.BD_REPO_BRANCH }}
fetch-depth: 0
path: bilara-data-integrity/bilara-data
- name: Setup Python
uses: actions/[email protected]
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install bilara-data-integrity Python dependencies
run: pip install -r requirements.txt
working-directory: bilara-data-integrity
- name: Set up sutta-processor
run: pip install .
working-directory: bilara-data-integrity
- name: Run sutta-processor
run: sutta-processor -e check_migration -c sutta_processor_config.yaml
working-directory: bilara-data-integrity