Skip to content

Commit ac5b3c2

Browse files
committed
Corrected github actions
1 parent 9a79719 commit ac5b3c2

2 files changed

Lines changed: 4 additions & 34 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
run: make fmtcheck
2121

2222
build:
23-
runs-on: ubuntu-20.04
23+
runs-on: ubuntu-latest
2424
strategy:
2525
matrix:
26-
python-version: [3.6, 3.7, 3.8, 3.9, pypy-3.7]
26+
python-version: [ 3.6, 3.7, 3.8, 3.9 ]
2727

2828
steps:
2929
- uses: actions/checkout@v2
@@ -34,17 +34,5 @@ jobs:
3434
python-version: ${{ matrix.python-version }}
3535
- name: Upgrade pip and virtualenv to latest
3636
run: pip install --upgrade pip virtualenv
37-
- name: Get pip cache dir
38-
id: pip-cache
39-
run: |
40-
python -c "from pip._internal.locations import USER_CACHE_DIR; print('::set-output name=dir::' + USER_CACHE_DIR)"
41-
- name: pip cache
42-
uses: actions/cache@v2
43-
with:
44-
path: ${{ steps.pip-cache.outputs.dir }}
45-
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
46-
restore-keys: |
47-
${{ runner.os }}-pip-
48-
4937
- name: Test with pytest
5038
run: make test

.github/workflows/python-publish.yml

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ on:
1313
types: [created]
1414

1515
jobs:
16-
1716
fmt:
1817
runs-on: ubuntu-latest
1918
steps:
@@ -24,41 +23,24 @@ jobs:
2423
python-version: 3.9
2524
- name: fmtcheck
2625
run: make fmtcheck
27-
2826
build:
2927
runs-on: ubuntu-latest
3028
strategy:
3129
matrix:
32-
python-version: [3.6, 3.7, 3.8, 3.9, pypy-3.7]
33-
30+
python-version: [3.6, 3.7, 3.8, 3.9]
3431
steps:
3532
- uses: actions/checkout@v2
36-
3733
- name: Set up Python ${{ matrix.python-version }}
3834
uses: actions/setup-python@v2
3935
with:
4036
python-version: ${{ matrix.python-version }}
4137
- name: Upgrade pip and virtualenv to latest
4238
run: pip install --upgrade pip virtualenv
43-
- name: Get pip cache dir
44-
id: pip-cache
45-
run: |
46-
python -c "from pip._internal.locations import USER_CACHE_DIR; print('::set-output name=dir::' + USER_CACHE_DIR)"
47-
- name: pip cache
48-
uses: actions/cache@v2
49-
with:
50-
path: ${{ steps.pip-cache.outputs.dir }}
51-
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
52-
restore-keys: |
53-
${{ runner.os }}-pip-
54-
5539
- name: Test with pytest
5640
run: make test
5741

5842
deploy:
59-
60-
runs-on: ubuntu-20.04
61-
43+
runs-on: ubuntu-latest
6244
steps:
6345
- uses: actions/checkout@v2
6446
- name: Set up Python

0 commit comments

Comments
 (0)