Skip to content

Commit

Permalink
Avoid downloading not required files for regression test and benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
randy-seng committed Aug 27, 2024
1 parent 5f312f2 commit df19e2d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Benchmark Test With Pytest
on:
schedule:
Expand All @@ -20,7 +21,10 @@ jobs:
with:
python-version: 3.11
- name: Download test data
run: gh release download --pattern '*.zip' -R platomo/OpenTrafficCam-testdata -D tests/data
run: gh release download \
--pattern 'OTCamera19_FR20_2023-05-24_06-00-00_11-45-00.zip' \
--pattern 'OTCamera19_FR20_2023-05-24_00-00-00.zip' \
-R platomo/OpenTrafficCam-testdata -D tests/data
env:
GH_TOKEN: ${{ secrets.PLATOMO_OTC_TESTDATA_ACCESS }}
- name: Unzip test data
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/regression-test.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Regression Test With Pytest
on:
pull_request:
Expand All @@ -17,7 +18,10 @@ jobs:
with:
python-version: 3.11
- name: Download test data
run: gh release download --pattern '*.zip' -R platomo/OpenTrafficCam-testdata -D tests/data
run: gh release download \
--pattern 'OTCamera19_FR20_2023-05-24_06-00-00_11-45-00.zip' \
--pattern 'OTCamera19_FR20_2023-05-24_00-00-00.zip' \
-R platomo/OpenTrafficCam-testdata -D tests/data
env:
GH_TOKEN: ${{ secrets.PLATOMO_OTC_TESTDATA_ACCESS }}
- name: Unzip test data
Expand Down

0 comments on commit df19e2d

Please sign in to comment.