File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change
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 }}
You can’t perform that action at this time.
0 commit comments