This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit 398e8a4 committed Jan 14, 2025 · 0 / 4
1 parent ab2eb3c commit 398e8a4 Copy full SHA for 398e8a4
File tree 2 files changed +17
-48
lines changed
2 files changed +17
-48
lines changed Original file line number Diff line number Diff line change 11
11
12
12
jobs :
13
13
tests :
14
- runs-on : ubuntu-latest
14
+ runs-on : ubuntu-22.04
15
15
strategy :
16
16
matrix :
17
17
python-version : ["3.10", "3.11", "3.12"]
@@ -21,33 +21,18 @@ jobs:
21
21
22
22
steps :
23
23
- uses : actions/checkout@v2
24
+
25
+ - name : Install Poetry
26
+ run : pipx install poetry
27
+
24
28
- name : Set up Python ${{ matrix.python-version }}
25
29
uses : actions/setup-python@v2
26
30
with :
27
31
python-version : ${{ matrix.python-version }}
28
- - name : Install Poetry
29
- uses : snok/install-poetry@v1
30
- with :
31
- virtualenvs-create : true
32
- virtualenvs-in-project : true
33
- virtualenvs-path : .venv
34
-
35
- - name : Load cached venv
36
- id : cached-poetry-dependencies
37
- uses : actions/cache@v4
38
- with :
39
- path : .venv
40
- key : venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}-dev
32
+ cache : ' poetry'
41
33
42
34
- name : Install dependencies
43
- if : steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
44
- run : poetry install --no-interaction --no-root --with dev
45
-
46
- - name : Install project
47
- run : poetry install --no-interaction
35
+ run : poetry install --no-interaction --with dev
48
36
49
- - name : Run Download Tests
50
- run : |
51
- source .venv/bin/activate
52
- pytest -ra -v -m "download"
53
- coverage report
37
+ - name : Run Core Tests
38
+ run : poetry run pytest -ra -v -m "not download"
Original file line number Diff line number Diff line change 10
10
11
11
jobs :
12
12
tests :
13
- runs-on : ubuntu-latest
13
+ runs-on : ubuntu-22.04
14
14
strategy :
15
+ fail-fast : false
15
16
matrix :
16
17
python-version : ["3.10"] # only run expensive downloads on one (lowest) python version
17
18
defaults :
@@ -21,34 +22,17 @@ jobs:
21
22
steps :
22
23
- uses : actions/checkout@v4
23
24
25
+ - name : Install poetry
26
+ run : pipx install poetry
27
+
24
28
- name : Set up Python ${{ matrix.python-version }}
25
29
uses : actions/setup-python@v5
26
30
with :
27
31
python-version : ${{ matrix.python-version }}
28
-
29
- - name : Install Poetry
30
- uses : snok/install-poetry@v1
31
- with :
32
- virtualenvs-create : true
33
- virtualenvs-in-project : true
34
- virtualenvs-path : .venv
35
-
36
- - name : Load cached venv
37
- id : cached-poetry-dependencies
38
- uses : actions/cache@v4
39
- with :
40
- path : .venv
41
- key : venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}-dev
32
+ cache : ' poetry'
42
33
43
34
- name : Install dependencies
44
- if : steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
45
- run : poetry install --no-interaction --no-root --with dev
46
-
47
- - name : Install project
48
- run : poetry install --no-interaction
35
+ run : poetry install --no-interaction --with dev
49
36
50
37
- name : Run Download Tests
51
- run : |
52
- source .venv/bin/activate
53
- pytest -ra -v -m "download"
54
- coverage report
38
+ run : poetry run pytest -ra -v -m "download"
You can’t perform that action at this time.
0 commit comments