File tree Expand file tree Collapse file tree 3 files changed +32
-9
lines changed Expand file tree Collapse file tree 3 files changed +32
-9
lines changed Original file line number Diff line number Diff line change @@ -11,21 +11,27 @@ jobs:
11
11
12
12
steps :
13
13
- uses : actions/checkout@v3
14
+
15
+ - name : Install poetry
16
+ # install poetry before setup-python to enable cache retrieval
17
+ run : pipx install poetry
18
+
14
19
- name : Set up Python 3.8
15
20
uses : actions/setup-python@v4
16
21
with :
17
22
python-version : 3.8
18
23
cache : poetry
19
- cache-dependency-path : poetry.lock
24
+
20
25
- name : Install webdriver and poetry
21
26
run : |
22
27
sudo apt-get update && sudo apt-get install firefox-geckodriver
23
- pip install --upgrade pip && pip install --no-cache-dir poetry
28
+ pip install --upgrade pip
24
29
poetry config virtualenvs.in-project false
25
30
poetry config virtualenvs.path ~/.virtualenvs
31
+
26
32
- name : Install dependencies
27
33
run : poetry install -E server -E fermi
28
- if : steps.cache.outputs.cache-hit != 'true'
34
+
29
35
- name : Test with pytest
30
36
env :
31
37
PERCY_TOKEN : ${{ secrets.PERCY_TOKEN }}
Original file line number Diff line number Diff line change 8
8
9
9
steps :
10
10
- uses : actions/checkout@v3
11
+
12
+ - name : Install poetry
13
+ # install poetry before setup-python to enable cache retrieval
14
+ run : pipx install poetry
15
+
11
16
- name : Set up Python 3.8
12
17
uses : actions/setup-python@v4
13
18
with :
14
19
python-version : 3.8
20
+ cache : poetry
21
+
15
22
- name : Install webdriver and poetry
16
23
run : |
17
24
sudo apt-get update && sudo apt-get install firefox-geckodriver
18
- pip install --upgrade pip && pip install --no-cache-dir poetry
25
+ pip install --upgrade pip
19
26
poetry config virtualenvs.in-project false
20
27
poetry config virtualenvs.path ~/.virtualenvs
28
+
21
29
- name : Install dependencies
22
30
run : poetry install -E server -E fermi
23
- if : steps.cache.outputs.cache-hit != 'true'
31
+
24
32
- name : Build new docs
25
33
run : |
26
34
git config --global user.name 'Matthew Horton'
@@ -29,12 +37,14 @@ jobs:
29
37
git checkout "${GITHUB_REF:11}"
30
38
cd docs_rst
31
39
poetry run make html
40
+
32
41
- name : Commit new docs
33
42
run : |
34
43
git add -A
35
44
git diff-index --quiet HEAD || git commit -m "Automated doc build"
36
45
git push
37
46
continue-on-error : true
47
+
38
48
- name : Test with pytest
39
49
env :
40
50
PERCY_TOKEN : ${{ secrets.PERCY_TOKEN }}
Original file line number Diff line number Diff line change 9
9
steps :
10
10
- uses : actions/checkout@v2
11
11
with :
12
- ref : main
13
12
fetch-depth : 2
14
- - name : Set up Python 3.7
13
+
14
+ - name : Install poetry
15
+ # install poetry before setup-python to enable cache retrieval
16
+ run : pipx install poetry
17
+
18
+ - name : Set up Python 3.8
15
19
uses : actions/setup-python@v4
16
20
with :
17
- python-version : 3.7
21
+ python-version : 3.8
22
+ cache : poetry
23
+
18
24
- name : Install dependencies
19
25
run : |
20
- pip install --upgrade pip && pip install --no-cache-dir poetry
26
+ pip install --upgrade pip
21
27
poetry install -E server -E fermi
28
+
22
29
- name : Build and publish
23
30
run : |
24
31
poetry build
You can’t perform that action at this time.
0 commit comments