File tree 4 files changed +19
-54
lines changed
4 files changed +19
-54
lines changed Original file line number Diff line number Diff line change 4
4
branches :
5
5
- main
6
6
7
+ # Default to bash in login mode; key to activating conda environment
8
+ # https://github.com/mamba-org/provision-with-micromamba#IMPORTANT
9
+ defaults :
10
+ run :
11
+ shell : " bash -l {0}"
12
+
7
13
permissions :
8
14
contents : write
9
15
pages : write
10
16
17
+ env :
18
+ MICROMAMBA_VERSION : ' latest'
19
+
11
20
jobs :
12
21
build :
13
22
name : Deploy docs
@@ -19,19 +28,15 @@ jobs:
19
28
submodules : " recursive"
20
29
fetch-depth : 0 # Fetch all history for .GitInfo and .Lastmod
21
30
22
- - name : Setup Python
23
- uses : actions/setup-python@v4
24
- with :
25
- python-version : ' 3.9'
26
- architecture : ' x64'
27
31
- name : Install dependencies
28
- run : |
29
- python3 -m pip install --upgrade pip # install pip
30
- python3 -m pip install -r requirements-dev.txt # install dev deps
32
+ uses : " mamba-org/setup-micromamba@v1"
33
+ with :
34
+ micromamba-version : " ${{ env.MICROMAMBA_VERSION }}"
35
+ environment-file : " environments/dev-environment.yaml"
36
+ cache-environment : true
31
37
32
38
- name : Install conda-lock
33
- run : |
34
- python3 -m pip install .
39
+ run : " pip install ."
35
40
36
41
- name : Build site
37
42
run : mkdocs build
42
47
github_token : ${{ secrets.GITHUB_TOKEN }}
43
48
publish_dir : ./site
44
49
user_name : ' github-actions[bot]'
45
- user_email : ' github-actions[bot]@users.noreply.github.com'
50
+ user_email : ' github-actions[bot]@users.noreply.github.com'
Original file line number Diff line number Diff line change @@ -31,18 +31,10 @@ jobs:
31
31
uses : mamba-org/setup-micromamba@v1
32
32
with :
33
33
micromamba-version : ${{ env.MICROMAMBA_VERSION }}
34
- environment-name : test-env
34
+ environment-file : environments/dev-environment.yaml
35
35
init-shell : powershell
36
36
create-args : >-
37
37
python=3.11
38
- mamba
39
- pip
40
- pytest-cov
41
- pytest-xdist
42
-
43
- - name : Install dev deps
44
- run : |
45
- python -m pip install -r requirements-dev.txt
46
38
47
39
- name : install conda-lock
48
40
run : |
@@ -78,23 +70,10 @@ jobs:
78
70
- uses : mamba-org/setup-micromamba@v1
79
71
with :
80
72
micromamba-version : ${{ env.MICROMAMBA_VERSION }}
81
- environment-name : test-env
73
+ environment-file : environments/dev-environment.yaml
82
74
init-shell : bash
83
75
create-args : >-
84
76
python=${{ matrix.python-version }}
85
- mamba
86
- pip
87
- pytest-cov
88
- pytest-xdist
89
-
90
- - name : Install dev deps
91
- shell : bash -eo pipefail -l {0}
92
- run : |
93
- set -x
94
- echo "${PATH}"
95
- which pip
96
- which python
97
- python -m pip install -r requirements-dev.txt
98
77
99
78
- name : install conda-lock
100
79
shell : bash -eo pipefail -l {0}
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ channels:
4
4
- conda-forge
5
5
- nodefaults
6
6
dependencies :
7
+ - mamba
7
8
- black
8
9
- check-manifest
9
10
- doctr
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments