Skip to content

Commit 0f8ba38

Browse files
committed
Update test workflow
1 parent 0fbb519 commit 0f8ba38

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.github/workflows/tests.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818

1919
steps:
2020
- uses: actions/checkout@v2
21-
- name: Set up Python 3.8
21+
- name: Set up Python 3.9
2222
uses: actions/setup-python@v1
2323
with:
24-
python-version: 3.8
24+
python-version: 3.9
2525
- name: Linting
2626
run: |
2727
pip install pre-commit
@@ -34,7 +34,7 @@ jobs:
3434
strategy:
3535
matrix:
3636
os: [Ubuntu, MacOS, Windows]
37-
python-version: [3.6, 3.7, 3.8, pypy3]
37+
python-version: [3.6, 3.7, 3.8, 3.9, pypy3]
3838
steps:
3939
- uses: actions/checkout@v2
4040

@@ -51,9 +51,18 @@ jobs:
5151
- name: Install poetry
5252
shell: bash
5353
run: |
54-
curl -fsS -o get-poetry.py https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py
55-
python get-poetry.py --preview -y
56-
echo "::set-env name=PATH::$HOME/.poetry/bin:$PATH"
54+
curl -fsS -o install-poetry.py https://raw.githubusercontent.com/sdispater/poetry/master/install-poetry.py
55+
python install-poetry.py --preview -y
56+
57+
- name: Update PATH
58+
if: ${{ matrix.os != 'Windows' }}
59+
shell: bash
60+
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
61+
62+
- name: Update Path for Windows
63+
if: ${{ matrix.os == 'Windows' }}
64+
shell: bash
65+
run: echo "$APPDATA\Python\Scripts" >> $GITHUB_PATH
5766

5867
- name: Configure poetry
5968
shell: bash

0 commit comments

Comments
 (0)