Skip to content

Commit c616114

Browse files
authored
Update workflow.yml
1 parent 53e1529 commit c616114

File tree

1 file changed

+10
-67
lines changed

1 file changed

+10
-67
lines changed

.github/workflows/workflow.yml

Lines changed: 10 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ${{ matrix.operating-system }}
1515
strategy:
1616
matrix:
17-
operating-system: [ubuntu-latest, windows-latest]
17+
operating-system: [ubuntu-latest]
1818
steps:
1919
- name: Checkout
2020
uses: actions/checkout@v2
@@ -31,71 +31,14 @@ jobs:
3131
- name: Lint
3232
run: npm run format-check
3333

34-
- name: npm test
35-
run: npm test
36-
37-
- name: Run with setup-python 2.7
38-
uses: ./
39-
with:
40-
python-version: 2.7
41-
- name: Verify 2.7
42-
run: python __tests__/verify-python.py 2.7
43-
44-
- name: Run with setup-python 3.5
45-
uses: ./
46-
with:
47-
python-version: 3.5
48-
- name: Verify 3.5
49-
run: python __tests__/verify-python.py 3.5
50-
51-
- name: Run with setup-python 3.6
52-
uses: ./
53-
with:
54-
python-version: 3.6
55-
- name: Verify 3.6
56-
run: python __tests__/verify-python.py 3.6
57-
58-
- name: Run with setup-python 3.7
59-
uses: ./
34+
- uses: actions/checkout@v3
35+
- name: Install poetry
36+
run: pipx install poetry==1.1.15
37+
38+
- uses: actions/setup-python@v4
6039
with:
61-
python-version: 3.7
62-
- name: Verify 3.7
63-
run: python __tests__/verify-python.py 3.7
40+
python-version: '3.9'
41+
cache: 'poetry'
42+
- run: poetry install
43+
- run: poetry run pytest
6444

65-
- name: Run with setup-python 3.8
66-
uses: ./
67-
with:
68-
python-version: 3.8
69-
- name: Verify 3.8
70-
run: python __tests__/verify-python.py 3.8
71-
72-
- name: Run with setup-python 3.7.5
73-
uses: ./
74-
with:
75-
python-version: 3.7.5
76-
- name: Verify 3.7.5
77-
run: python __tests__/verify-python.py 3.7.5
78-
79-
- name: Run with setup-python 3.6.7
80-
uses: ./
81-
with:
82-
python-version: 3.6.7
83-
- name: Verify 3.6.7
84-
run: python __tests__/verify-python.py 3.6.7
85-
86-
- name: Run with setup-python 3.8.1
87-
uses: ./
88-
with:
89-
python-version: 3.8.1
90-
- name: Verify 3.8.1
91-
run: python __tests__/verify-python.py 3.8.1
92-
93-
- name: Run with setup-python 3.10
94-
id: cp310
95-
uses: ./
96-
with:
97-
python-version: "3.10"
98-
- name: Verify 3.10
99-
run: python __tests__/verify-python.py 3.10
100-
- name: Run python-path sample 3.10
101-
run: pipx run --python '${{ steps.cp310.outputs.python-path }}' nox --version

0 commit comments

Comments
 (0)