@@ -4,72 +4,70 @@ on: [push]
4
4
5
5
jobs :
6
6
test :
7
-
8
7
runs-on : ubuntu-latest
9
8
strategy :
10
9
matrix :
11
10
python-version : [3.8]
12
11
13
12
steps :
14
- - uses : actions/checkout@v2
15
- - name : Set up Python ${{ matrix.python-version }}
16
- uses : actions/setup-python@v2
17
- with :
18
- python-version : ${{ matrix.python-version }}
13
+ - name : Set PATH
14
+ run : echo "${HOME}/.local/bin" >> $GITHUB_PATH
19
15
20
- - name : Cache pip
21
- uses : actions/cache@v2
22
- with :
23
- path : ~/.cache/pip
24
- key : ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('poetry.lock') }}-${ GITHUB_REF }
25
- restore-keys : |
26
- ${{ runner.os }}-pip-
27
- ${{ runner.os }}-
16
+ - uses : actions/checkout@v2
17
+ - name : Set up Python ${{ matrix.python-version }}
18
+ uses : actions/setup-python@v2
19
+ with :
20
+ python-version : ${{ matrix.python-version }}
28
21
29
- - name : Install dependencies
30
- run : |
31
- curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
32
- source $HOME/.poetry/env
33
- poetry install
22
+ - name : Cache pip
23
+ uses : actions/cache@v2
24
+ with :
25
+ path : ~/.cache/pip
26
+ key : ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('poetry.lock') }}-${ GITHUB_REF }
27
+ restore-keys : |
28
+ ${{ runner.os }}-pip-
29
+ ${{ runner.os }}-
34
30
35
- - name : Run tests
36
- run : |
37
- source $HOME/. poetry/env
38
- poetry run pytest
31
+ - name : Install dependencies
32
+ run : |
33
+ curl -sSL https://install.python- poetry.org | python - --version 1.2.2
34
+ poetry install
39
35
40
- - name : Build wheels
41
- run : |
42
- source $HOME/.poetry/env
43
- poetry build
36
+ - name : Run tests
37
+ run : |
38
+ poetry run pytest
44
39
45
- build-docs :
40
+ - name : Build wheels
41
+ run : |
42
+ poetry build
46
43
44
+ build-docs :
47
45
runs-on : ubuntu-latest
48
46
strategy :
49
47
matrix :
50
48
python-version : [3.8]
51
49
52
50
steps :
53
- - uses : actions/checkout@v2
54
- - name : Set up Python ${{ matrix.python-version }}
55
- uses : actions/setup-python@v2
56
- with :
57
- python-version : ${{ matrix.python-version }}
51
+ - uses : actions/checkout@v2
52
+ - name : Set up Python ${{ matrix.python-version }}
53
+ uses : actions/setup-python@v2
54
+ with :
55
+ python-version : ${{ matrix.python-version }}
58
56
59
- - name : Cache pip
60
- uses : actions/cache@v2
61
- with :
62
- path : ~/.cache/pip
63
- key : ${{ runner.os }}-pip-${{ hashFiles('docs/source/requirements.txt') }}-${ GITHUB_REF }
64
- restore-keys : |
65
- ${{ runner.os }}-pip-
66
- ${{ runner.os }}-
57
+ - name : Cache pip
58
+ uses : actions/cache@v2
59
+ with :
60
+ path : ~/.cache/pip
61
+ key : ${{ runner.os }}-pip-${{ hashFiles('docs/source/requirements.txt') }}-${ GITHUB_REF }
62
+ restore-keys : |
63
+ ${{ runner.os }}-pip-
64
+ ${{ runner.os }}-
67
65
68
- - name : Install dependencies
69
- run : |
70
- python -m pip install --upgrade pip
71
- pip install -r docs/source/requirements.txt
66
+ - name : Install dependencies
67
+ run : |
68
+ python -m pip install --upgrade pip
69
+ pip install -r docs/source/requirements.txt
72
70
73
- - name : Build html
74
- run : |
75
- (cd docs && make html)
71
+ - name : Build html
72
+ run : |
73
+ (cd docs && make html)
0 commit comments