Skip to content

Commit

Permalink
ci: cache data
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s committed Oct 25, 2023
1 parent 41332fd commit 9f5b8aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/conda-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ jobs:
run: echo "::set-output name=today::$(/bin/date -u '+%Y%m%d')"
shell: bash

- name: Caching of the happypose installation
- name: Caching of the happypose installation and data
uses: actions/cache@v3
with:
path: ${{ env.CONDA }}/envs
path: |
${{ env.CONDA }}/envs
local_data
key:
conda-${{ runner.os }}--${{ runner.arch }}--${{steps.get-date.outputs.today }}-${{hashFiles('environment.yml') }}-${{env.CACHE_NUMBER }}
env:
Expand All @@ -54,7 +56,6 @@ jobs:

- name: Download pre-trained models required for tests
run: |
mkdir local_data
python -m happypose.toolbox.utils.download \
--megapose_models \
--examples \
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/poetry-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ jobs:
- name: Setup poetry
run: pipx install poetry

- name: Caching of the happypose installation and data
uses: actions/cache@v3
with:
path: local_data

- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
Expand All @@ -29,7 +34,6 @@ jobs:

- name: Download pre-trained models required for tests
run: |
mkdir local_data
poetry run python -m happypose.toolbox.utils.download \
--megapose_models \
--examples \
Expand Down

0 comments on commit 9f5b8aa

Please sign in to comment.