Skip to content

Commit a7a91cd

Browse files
DEBUG - run single test workflow
1 parent 53574e0 commit a7a91cd

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/run_single_test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Run Chosen Pytest
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
pytest_args:
7+
description: 'Pytest arguments (e.g. tests/test_file.py::TestClass::test_func -k "param")'
8+
required: true
9+
default: ''
10+
11+
jobs:
12+
run-pytest:
13+
runs-on: ubuntu-latest
14+
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/your-branch-name'
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: '3.11'
23+
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install ".[development,aio,secure-local-storage]"
27+
28+
- name: Run pytest with input arguments
29+
run: |
30+
pytest -vvv ${{ github.event.inputs.pytest_args }}

0 commit comments

Comments
 (0)