Skip to content

Commit 537215a

Browse files
authored
Merge pull request #7987 from bluetech/ci-deprecated
ci: fix deprecation message & couple updates
2 parents c2f949d + 8aa9ea9 commit 537215a

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
os: ubuntu-latest
8686
tox_env: "py38-xdist"
8787
- name: "ubuntu-py39"
88-
python: "3.9-dev"
88+
python: "3.9"
8989
os: ubuntu-latest
9090
tox_env: "py39-xdist"
9191
- name: "ubuntu-pypy3"
@@ -124,12 +124,6 @@ jobs:
124124
fetch-depth: 0
125125
- name: Set up Python ${{ matrix.python }}
126126
uses: actions/setup-python@v2
127-
if: matrix.python != '3.9-dev'
128-
with:
129-
python-version: ${{ matrix.python }}
130-
- name: Set up Python ${{ matrix.python }} (deadsnakes)
131-
uses: deadsnakes/[email protected]
132-
if: matrix.python == '3.9-dev'
133127
with:
134128
python-version: ${{ matrix.python }}
135129
- name: Install dependencies
@@ -166,8 +160,8 @@ jobs:
166160
- uses: actions/checkout@v2
167161
- uses: actions/setup-python@v2
168162
- name: set PY
169-
run: echo "::set-env name=PY::$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')"
170-
- uses: actions/cache@v1
163+
run: echo "name=PY::$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')" >> $GITHUB_ENV
164+
- uses: actions/cache@v2
171165
with:
172166
path: ~/.cache/pre-commit
173167
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}

0 commit comments

Comments
 (0)