-
Notifications
You must be signed in to change notification settings - Fork 4
52 lines (45 loc) · 1.21 KB
/
bot.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
49
50
51
52
name: Bot validation
on:
push:
paths:
- 'caltechdata_api/cli.py'
- 'caltechdata_api/customize_schema.py'
- 'caltechdata_api/caltechdata_write.py'
- 'caltechdata_api/caltechdata_edit.py'
- 'README.md'
pull_request:
paths:
- 'caltechdata_api/cli.py'
- 'caltechdata_api/customize_schema.py'
- 'caltechdata_api/caltechdata_write.py'
- 'caltechdata_api/caltechdata_edit.py'
- 'README.md'
jobs:
validate-metadata:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest requests s3fs cryptography
pip install .
- name: Run against CaltechData Test system
env:
RDMTOK: ${{ secrets.CALTECHDATA_TOKEN }}
run: |
cd tests
pytest test_unit.py
pytest test_rdm.py
- name: Run Medata Validation Test and RDM
env:
RDMTOK: ${{ secrets.CALTECHDATA_TOKEN }}
run: |
cd tests
python bot_yaml.py