-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.06 KB
/
test_stac_api.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
name: Test STAC API
on:
push:
branches:
- main
paths-ignore:
- 'results/logs/**'
- 'docs/index.html'
schedule:
- cron: "*/10 * * * *"
jobs:
test-stac-api:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run STAC API Test
run: python scripts/test_stac_api.py
- name: Update HTML Report
run: python scripts/update_html_report_api.py
- name: Commit Logs
if: always()
run: |
git config --global user.name "GitHub Action"
git config --global user.email "[email protected]"
git pull --rebase --autostash
git add results/logs/latest_test.log docs/index.html
git commit -m "Updated STAC API test logs and HTML report"
git push