Skip to content

Commit e5bf59f

Browse files
committed
Add manual triggering to pytest GitHub action
1 parent 5d94121 commit e5bf59f

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

.github/workflows/pytest.yml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,28 @@ on:
1010
- '**'
1111
paths:
1212
- 'python/**'
13+
workflow_dispatch:
14+
inputs: { }
1315

1416
jobs:
1517
build:
1618
runs-on: ubuntu-latest
1719
strategy:
1820
matrix:
19-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
21+
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12", "3.13" ]
2022

2123
steps:
22-
- uses: actions/checkout@v4
23-
- name: Set up Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v5
25-
with:
26-
python-version: ${{ matrix.python-version }}
27-
- name: Install dependencies
28-
working-directory: python
29-
run: |
30-
python -m pip install --upgrade pip
31-
pip install .
32-
pip install --use-pep517 -r ./requirements.txt
33-
- name: Test with pytest
34-
working-directory: python
35-
run: pytest
24+
- uses: actions/checkout@v4
25+
- name: Set up Python ${{ matrix.python-version }}
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: ${{ matrix.python-version }}
29+
- name: Install dependencies
30+
working-directory: python
31+
run: |
32+
python -m pip install --upgrade pip
33+
pip install .
34+
pip install --use-pep517 -r ./requirements.txt
35+
- name: Test with pytest
36+
working-directory: python
37+
run: pytest

0 commit comments

Comments
 (0)