-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (73 loc) · 2.16 KB
/
env-sync.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
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Environment File Sync
on:
push:
paths:
- environment.yml
- .github/workflows/env-sync.yml
jobs:
env-install:
name: Env Sync (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.9"]
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
activate-environment: musa-550-fall-2022
environment-file: ./environment.yml
auto-activate-base: false
- shell: bash -l {0}
run: |
conda info
conda list
- shell: bash -l {0}
run: |
python -c "import geopandas; print(geopandas.__version__)"
upload:
needs: env-install
runs-on: "macos-latest"
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.9
- name: Setup Anaconda Client
shell: bash -l {0}
run: |
conda install --yes anaconda-client
- name: Upload to Anaconda
shell: bash -l {0}
env:
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
run: |
cp ./environment.yml ./musa-550-fall-2022.yml
anaconda -t "$ANACONDA_TOKEN" upload ./musa-550-fall-2022.yml
test-remote-install:
needs: env-install
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.9"]
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- name: Install MUSA Env
shell: bash -l {0}
run: |
conda env create pennmusa/musa-550-fall-2022
- name: Test Import
shell: bash -l {0}
run: |
conda activate musa-550-fall-2022
which python
python -c "import geopandas; print(geopandas.__version__)"