-
Notifications
You must be signed in to change notification settings - Fork 40
64 lines (53 loc) · 1.64 KB
/
test_python_environment_macos.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: MacOS-Test GDS Environment (Python)
on:
push:
branches: [ master ]
jobs:
Test:
name: macos-latest
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Setup Conda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
auto-activate-base: true
miniforge-version: latest
miniforge-variant: Mambaforge
use-mamba: true
- name: Set up GDS Env
shell: bash -l {0}
run: |
mamba env create -f gds_py/gds_py.yml
- name: Check and Log Environment
shell: bash -l {0}
run: |
conda activate gds
conda info
# Print conda list
conda list
- name: Test Environment
shell: bash -l {0}
continue-on-error: false
run: |
conda activate gds
jupyter nbconvert --to html --execute gds_py/check_py_stack.ipynb
- name: Write Explicit Stack
shell: bash -l {0}
continue-on-error: false
run: |
conda activate gds
conda list --explicit
conda list --explicit > gds_py/gds_py_explicit_macos-latest.txt
- name: Commit file
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add gds_py/gds_py_explicit_macos-latest.txt
git commit -m "Update explicit MacOS file" --allow-empty
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
force: true