@@ -27,49 +27,53 @@ jobs:
27
27
uses : actions/setup-python@v4
28
28
with :
29
29
python-version : ${{ matrix.python-version }}
30
+
30
31
- name : Env-Inspect1 (py${{ matrix.python-version }})
31
- run : (env | sort; echo "---- "; which tox; echo "---- "; which poetry) || true
32
- - name : Find1 (py${{ matrix.python-version }})
32
+ run : (echo "\n--- env"; env | sort; echo "\n --- tox "; which tox; echo "\n --- poetry "; which poetry) || true
33
+ - name : File-Inspect1 (py${{ matrix.python-version }})
33
34
run : find .
35
+
34
36
- name : Load cached Poetry installation
35
37
id : cached-poetry
36
38
uses : actions/cache@v3
37
39
with :
38
40
path : .venv # the path depends on the OS
39
41
key : poetry-3 # increment to reset cache
40
- - name : Find2 (py${{ matrix.python-version }})
41
- run : find .
42
42
- name : Install Poetry
43
43
if : steps.cached-poetry.outputs.cache-hit != 'true'
44
44
uses : snok/install-poetry@v1
45
45
with :
46
46
version : 1.7.0
47
47
virtualenvs-create : true
48
48
virtualenvs-in-project : true # create .venv in test directory
49
- - name : Tox env2 (py${{ matrix.python-version }})
50
- run : env
51
49
- name : Install Poetry development dependencies # main dependencies are handled by tox
52
50
if : steps.cached-poetry.outputs.cache-hit != 'true'
53
51
run : poetry install --no-interaction --no-root --only=dev
52
+
53
+ - name : Env-Inspect2 (py${{ matrix.python-version }})
54
+ run : (echo "\n--- env"; env | sort; echo "\n--- tox"; which tox; echo "\n--- poetry"; which poetry) || true
55
+ - name : File-Inspect2 (py${{ matrix.python-version }})
56
+ run : find .
57
+
54
58
- name : Activate Poetry development dependencies # main dependencies are handled by tox
55
59
if : steps.cached-poetry.outputs.cache-hit == 'true'
56
60
run : source .venv/bin/activate
57
- - name : Find3 (py${{ matrix.python-version }})
61
+
62
+ - name : Env-Inspect3 (py${{ matrix.python-version }})
63
+ run : (echo "\n--- env"; env | sort; echo "\n--- tox"; which tox; echo "\n--- poetry"; which poetry) || true
64
+ - name : File-Inspect3 (py${{ matrix.python-version }})
58
65
run : find .
59
- - name : Tox env3 (py${{ matrix.python-version }})
60
- run : env
66
+
61
67
- name : Load cached tox environment
62
68
id : cached-toxenv
63
69
uses : actions/cache@v3
64
70
with :
65
71
path : .tox/py${{ matrix.python-version }}-**
66
72
key : toxenv-py${{ matrix.python-version }}-${{ hashFiles('poetry.lock', 'tox.ini') }}
67
- - name : Tox id1 (py${{ matrix.python-version }})
68
- run : which tox || true
69
- - name : Tox id2 (py${{ matrix.python-version }})
70
- run : poetry run which tox || true
73
+
71
74
- name : Tox tests (py${{ matrix.python-version }})
72
75
run : poetry run tox
76
+
73
77
- name : Send coverage reports to Codecov
74
78
uses : codecov/codecov-action@v3
75
79
with :
79
83
# name: codecov-umbrella # optional
80
84
fail_ci_if_error : false
81
85
verbose : true
82
- - name : WTF1 (py${{ matrix.python-version }})
83
- run : ls -al manifest.txt || true
84
- - name : WTF2 (py${{ matrix.python-version }})
85
- run : cat manifest.txt || true
86
+
87
+ - name : Env-Inspect4 (py${{ matrix.python-version }})
88
+ run : (echo "\n--- env"; env | sort; echo "\n--- tox"; which tox; echo "\n--- poetry"; which poetry) || true
89
+ - name : File-Inspect4 (py${{ matrix.python-version }})
90
+ run : find .
0 commit comments