Skip to content

Commit 3402491

Browse files
updated workflow file (#122)
1 parent 77b86aa commit 3402491

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

.github/workflows/run-tests.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
name: Run Tests
22

3+
permissions:
4+
contents: read
5+
36
on:
47
push:
58
branches:
69
- main
710
pull_request:
8-
9-
permissions:
10-
contents: read
11+
types:
12+
- opened
13+
- synchronize
1114

1215
jobs:
13-
run-tests:
16+
test-pipeline:
1417
runs-on: ubuntu-latest
1518
environment: test_pipeline
1619

@@ -25,29 +28,31 @@ jobs:
2528
with:
2629
python-version: "3.11"
2730

28-
29-
- name: Set .env testing purpose
31+
- name: Setup environment
32+
id: setup_environment
3033
run: |
3134
echo > .env
3235
echo "INPUT_TOKEN_LIMIT=1000" >> .env
33-
- name: test all
34-
id: test-endpoints
36+
37+
- name: Run Tests
38+
id: run_tests
3539
run: |
3640
set -a;
3741
source .env;
3842
set +a;
3943
pip install -r tests/src/requirements.txt
4044
pip install -e .[llms]
41-
4245
pytest --cov --cov-branch --cov-report=xml --junitxml=junit.xml -o junit_family=legacy
4346
4447
- name: Upload coverage reports to Codecov
48+
id: upload_unit_test_coverage
4549
if: ${{ !cancelled() }}
4650
uses: codecov/codecov-action@v5
4751
with:
4852
token: ${{ secrets.CODECOV_TOKEN }}
4953

5054
- name: Upload test results to Codecov
55+
id: upload_unit_test_results
5156
if: ${{ !cancelled() }}
5257
uses: codecov/test-results-action@v1
5358
with:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "txt2detection"
7-
version = "1.0.1"
7+
version = "1.0.2"
88
authors = [
99
{ name = "dogesec" }
1010
]

0 commit comments

Comments
 (0)