Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelzw committed Oct 11, 2023
1 parent 87f6585 commit 07a0a56
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,44 @@ jobs:
python -c "import os; env = os.path.basename(os.environ['CONDA_PREFIX']); assert env == 'env-name'"
test-env-changing-root-path1:
name: Test env cache with changing root path 1/2
timeout-minutes: 10
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: ./
with:
environment-file: test/environment.yml
cache-environment-key: env-root-path-key-${{ github.sha }}-${{ github.run_attempt }}
- name: test environment name
run: |
python -c "import os; env = os.path.basename(os.environ['CONDA_PREFIX']); assert env == 'env-name'"
test-env-changing-root-path2:
name: Test env cache with changing root path 2/2
timeout-minutes: 10
needs: test-env-changing-root-path1
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: ./
with:
environment-file: test/environment.yml
cache-environment-key: env-root-path-key-${{ github.sha }}-${{ github.run_attempt }}
- name: test environment name
run: |
python -c "import os; env = os.path.basename(os.environ['CONDA_PREFIX']); assert env == 'env-name'"
test-env-then-download1:
name: Test env then download 1/2
timeout-minutes: 10
Expand Down

0 comments on commit 07a0a56

Please sign in to comment.