-
Notifications
You must be signed in to change notification settings - Fork 3
32 lines (29 loc) · 1.12 KB
/
pr.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
name: Test building data on PR
on: pull_request
jobs:
test:
name: locally
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v2
- name: 🏃 Run small dataset
#if: steps.extract_branch.outputs.branch == 'master' || steps.extract_branch.outputs.branch == 'dev'
run: |
make all FILES_TO_PROCESS=${FILES_TO_PROCESS} \
REPOSITORY_BUCKET=${REPOSITORY_BUCKET} \
CHUNK_SIZE=${CHUNK_SIZE} ES_THREADS=${ES_THREADS} RECIPE_THREADS=${RECIPE_THREADS} ES_MEM=${ES_MEM}
env:
FILES_TO_PROCESS: deces-2020-m01.txt.gz
REPOSITORY_BUCKET: fichier-des-personnes-decedees-elasticsearch-dev
CHUNK_SIZE: 5000
ES_THREADS: 2
RECIPE_THREADS: 2
ES_MEM: 4000m
STORAGE_ACCESS_KEY: ${{ secrets.STORAGE_ACCESS_KEY }}
STORAGE_SECRET_KEY: ${{ secrets.STORAGE_SECRET_KEY }}