-
Notifications
You must be signed in to change notification settings - Fork 20
42 lines (38 loc) · 1.03 KB
/
test_lock.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
name: Test lock files
on:
push:
branches:
- main
pull_request: null
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test lock files
timeout-minutes: 10
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
lock-file: conda-win-64.lock
- os: ubuntu-latest
lock-file: conda-linux-64.lock
- os: macos-latest
lock-file: conda-osx-64.lock
os: [windows-latest, ubuntu-latest, macos-latest]
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- name: install from lockfile
uses: ./
with:
environment-name: lock_test
environment-file: .github/workflows/lockfiles/${{ matrix.lock-file }}
- name: test environment name
run: |
python -c "import os; env = os.path.basename(os.environ['CONDA_PREFIX']); assert env == 'lock_test'"