Skip to content

Commit dce8cfc

Browse files
committed
update test action
1 parent 3f27c1a commit dce8cfc

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

.github/workflows/python-pytest.yml

+18-17
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,30 @@ name: tests
66
on:
77
push:
88
branches: [master, main]
9-
paths: ['slise/*.py', 'tests/*.py']
9+
paths: ["slise/*.py", "tests/*.py"]
1010
pull_request:
11-
paths: ['slise/*.py', 'tests/*.py']
11+
paths: ["slise/*.py", "tests/*.py"]
12+
workflow_dispatch:
1213

1314
jobs:
1415
build:
15-
1616
runs-on: ubuntu-latest
1717
strategy:
1818
matrix:
19-
python-version: ["3.8", "3.9", "3.10"]
19+
python-version: ["3.8", "3.9", "3.10", "3.11"]
2020

2121
steps:
22-
- uses: actions/checkout@v2
23-
- name: Set up Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v2
25-
with:
26-
python-version: ${{ matrix.python-version }}
27-
- name: Install dependencies
28-
run: |
29-
python -m pip install --upgrade pip
30-
python -m pip install pytest
31-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
32-
- name: Test with pytest
33-
run: |
34-
pytest
22+
- uses: actions/checkout@v2
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v2
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
- name: Install dependencies
28+
run: |
29+
python -m pip install --upgrade pip
30+
python -m pip install pytest build
31+
python -m pip install .
32+
- name: Build package
33+
run: python -m build
34+
- name: Test with pytest
35+
run: pytest

0 commit comments

Comments
 (0)