-
Notifications
You must be signed in to change notification settings - Fork 6
48 lines (40 loc) · 1.12 KB
/
validation.yaml
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
name: Dataset Validation
on:
pull_request:
branches:
- master
paths:
- 'submissions/**/dataset*.json*'
- 'submissions/**/compute*.json*'
defaults:
run:
shell: bash -l {0}
jobs:
dataset_validation:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: nschloe/action-cached-lfs-checkout@v1
- name: Additional info about the build
run: |
uname -a
df -h
ulimit -a
- name: Install environment
uses: mamba-org/setup-micromamba@v1
with:
environment-file: devtools/conda-envs/validation.yaml
create-args: >-
python=3.11
cache-environment: true
- name: Environment Information
run: |
conda info
conda list
- id: file_changes
uses: trilom/file-changes-action@v1.2.4
- name: Validate Dataset
env: # Or as an environment variable
GH_TOKEN: ${{ secrets.GH_DANGERBOT_TOKEN_LIMITED}}
run: |
python ./management/validation.py '${{ steps.file_changes.outputs.files}}' '${{ github.event.number }}'