Skip to content

Commit 27c2abc

Browse files
committed
fixes 3
1 parent f6300a2 commit 27c2abc

File tree

1 file changed

+21
-19
lines changed

1 file changed

+21
-19
lines changed

.github/workflows/integration.yml

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ jobs:
3838
~/.virtualenvs
3939
~/.cache/pip
4040
~/.cache/pypoetry
41-
key: lint-${{ hashFiles('**/poetry.lock', '**/tox.ini', '**/pyproject.toml') }}-${{ matrix.python-version}}
41+
key: lint-${{ hashFiles('**/poetry.lock', '**/tox.ini', '**/pyproject.toml') }}-${{ matrix.python}}
4242
restore-keys: |
43-
lint-${{ hashFiles('**/poetry.lock', '**/tox.ini', '**/pyproject.toml') }}-${{ matrix.python-version}}
43+
lint-${{ hashFiles('**/poetry.lock', '**/tox.ini', '**/pyproject.toml') }}-${{ matrix.python}}
4444
4545
- name: prepare the environment
4646
run: |
@@ -51,32 +51,34 @@ jobs:
5151
run: tox -e linters
5252

5353
tests:
54-
runs-on: ubuntu-latest
54+
name: Test on ${{ matrix.platform }} with Python ${{ matrix.python }}
55+
runs-on: ${{ matrix.platform }}
5556
env:
5657
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
5758
strategy:
5859
matrix:
5960
platform: ['ubuntu-20.04', 'macos-11']
60-
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
61+
python: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
6162
fail-fast: false
62-
name: Test Python ${{matrix.python-version}}
6363
steps:
6464
- uses: actions/checkout@v3
65-
- name: install base python
65+
- name: Setup Python
6666
uses: actions/setup-python@v4
6767
with:
68-
python-version: ${{matrix.python-version}}
69-
- name: Cache paths
70-
uses: actions/cache@v3
71-
with:
72-
path: |
73-
.tox
74-
~/.virtualenvs
75-
~/.cache/pip
76-
~/.cache/pypoetry
77-
key: cover-${{ hashFiles('**/poetry.lock', '**/tox.ini', '**/pyproject.toml') }}-${{ matrix.python-version}}
78-
restore-keys: |
79-
cover-${{ hashFiles('**/poetry.lock', '**/tox.ini', '**/pyproject.toml') }}-${{ matrix.python-version}}
68+
python-version: ${{matrix.python}}
69+
architecture: x64
70+
71+
# - name: Cache paths
72+
# uses: actions/cache@v3
73+
# with:
74+
# path: |
75+
# .tox
76+
# ~/.virtualenvs
77+
# ~/.cache/pip
78+
# ~/.cache/pypoetry
79+
# key: cover-${{ hashFiles('**/poetry.lock', '**/tox.ini', '**/pyproject.toml') }}-${{ matrix.python}}
80+
# restore-keys: |
81+
# cover-${{ hashFiles('**/poetry.lock', '**/tox.ini', '**/pyproject.toml') }}-${{ matrix.python}}
8082

8183
- name: prepare the environment
8284
run: |
@@ -87,7 +89,7 @@ jobs:
8789
run: tox -e cover
8890
- name: Upload coverage
8991
uses: codecov/codecov-action@v3
90-
if: matrix.python-version == '3.9' && matrix.platform != 'macos-11'
92+
if: matrix.python == '3.9' && matrix.platform != 'macos-11'
9193
with:
9294
fail_ci_if_error: false
9395
token: ${{ secrets.CODECOVTOKEN }}

0 commit comments

Comments
 (0)