Skip to content

Commit

Permalink
fix invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
ZainRizvi committed May 4, 2023
1 parent e86222c commit 24573b1
Show file tree
Hide file tree
Showing 4 changed files with 241 additions and 231 deletions.
3 changes: 1 addition & 2 deletions .github/actions/pytest-cache-download/action.yml
Expand Up @@ -31,10 +31,9 @@ runs:
python3 .github/scripts/pytest_cache.py \
--upload \
--download \
--cache_dir $GITHUB_WORKSPACE/$CACHE_DIR \
--pr_identifier $GITHUB_REF \
--workflow $WORKFLOW \
--job $JOB \
--shard $SHARD \
--temp_dir $RUNNER_TEMP \
12 changes: 11 additions & 1 deletion .github/actions/pytest-cache-upload/action.yml
Expand Up @@ -23,9 +23,19 @@ runs:
SHARD: ${{ inputs.shard }}
run: |
pip3 install boto3
set +x
echo "all the commands sent to the below script:""
echo "cache_dir: $GITHUB_WORKSPACE/$CACHE_DIR"
echo "pr_identifier: $GITHUB_REF"
echo "workflow: $WORKFLOW"
echo "job: $JOB"
echo "shard: $SHARD"
echo "temp_dir: $RUNNER_TEMP"
python3 .github/scripts/pytest_cache.py \
--upload \
--cache_dir $CACHE_DIR \
--cache_dir $GITHUB_WORKSPACE/$CACHE_DIR \
--pr_identifier $GITHUB_REF \
--workflow $WORKFLOW \
--job $JOB \
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/_linux-test.yml
Expand Up @@ -221,9 +221,10 @@ jobs:
- name: Upload pytest cache
uses: ./.github/actions/pytest-cache-upload
# continue-on-error: true
if: always() && steps.test.conclusion && steps.test.conclusion != 'skipped'
with:
cache_dir: ${{ env.GITHUB_WORKSPACE }}/.pytest_cache
cache_dir: .pytest_cache
shard: ${{ matrix.shard }}

- name: Print remaining test logs
Expand Down

0 comments on commit 24573b1

Please sign in to comment.