File tree Expand file tree Collapse file tree 2 files changed +15
-10
lines changed Expand file tree Collapse file tree 2 files changed +15
-10
lines changed Original file line number Diff line number Diff line change 1
1
name : Run Tests
2
2
3
+ permissions :
4
+ contents : read
5
+
3
6
on :
4
7
push :
5
8
branches :
6
9
- main
7
10
pull_request :
8
-
9
- permissions :
10
- contents : read
11
+ types :
12
+ - opened
13
+ - synchronize
11
14
12
15
jobs :
13
- run-tests :
16
+ test-pipeline :
14
17
runs-on : ubuntu-latest
15
18
environment : test_pipeline
16
19
@@ -25,29 +28,31 @@ jobs:
25
28
with :
26
29
python-version : " 3.11"
27
30
28
-
29
- - name : Set .env testing purpose
31
+ - name : Setup environment
32
+ id : setup_environment
30
33
run : |
31
34
echo > .env
32
35
echo "INPUT_TOKEN_LIMIT=1000" >> .env
33
- - name : test all
34
- id : test-endpoints
36
+
37
+ - name : Run Tests
38
+ id : run_tests
35
39
run : |
36
40
set -a;
37
41
source .env;
38
42
set +a;
39
43
pip install -r tests/src/requirements.txt
40
44
pip install -e .[llms]
41
-
42
45
pytest --cov --cov-branch --cov-report=xml --junitxml=junit.xml -o junit_family=legacy
43
46
44
47
- name : Upload coverage reports to Codecov
48
+ id : upload_unit_test_coverage
45
49
if : ${{ !cancelled() }}
46
50
uses : codecov/codecov-action@v5
47
51
with :
48
52
token : ${{ secrets.CODECOV_TOKEN }}
49
53
50
54
- name : Upload test results to Codecov
55
+ id : upload_unit_test_results
51
56
if : ${{ !cancelled() }}
52
57
uses : codecov/test-results-action@v1
53
58
with :
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
5
5
[project ]
6
6
name = " txt2detection"
7
- version = " 1.0.1 "
7
+ version = " 1.0.2 "
8
8
authors = [
9
9
{ name = " dogesec" }
10
10
]
You can’t perform that action at this time.
0 commit comments