Skip to content

Commit fd7180c

Browse files
committed
ud testing
1 parent 12d6fba commit fd7180c

1 file changed

Lines changed: 32 additions & 32 deletions

File tree

.github/workflows/testing.yaml

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -7,36 +7,36 @@ jobs:
77
name: Test
88
runs-on: ubuntu-latest
99
steps:
10-
- name: Checkout
11-
uses: actions/checkout@v2
12-
13-
- name: Set up Python
14-
uses: actions/setup-python@v2
15-
with:
16-
python-version: '3.x'
17-
18-
- name: Install dependencies
19-
run: |
20-
python -m pip install --upgrade pip
21-
pip install .
22-
23-
- name: Test with pytest
24-
run: |
25-
pip install pytest
26-
pip install pytest-cov
27-
python -m pytest tests --junit-xml pytest.xml
28-
29-
- name: Lint with flake8
30-
run: |
31-
pip install flake8
32-
flake8 --ignore=E741,E501 .
33-
34-
- name: Upload Unit Test Results
35-
if: always()
36-
uses: actions/upload-artifact@v2
37-
with:
38-
name: Unit Test Results
39-
path: pytest.xml
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
13+
- name: Set up Python
14+
uses: actions/setup-python@v5
15+
with:
16+
python-version: "3.x"
17+
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install .
22+
23+
- name: Test with pytest
24+
run: |
25+
pip install pytest
26+
pip install pytest-cov
27+
python -m pytest tests --junit-xml pytest.xml
28+
29+
- name: Lint with flake8
30+
run: |
31+
pip install flake8
32+
flake8 --ignore=E741,E501 .
33+
34+
- name: Upload Unit Test Results
35+
if: always()
36+
uses: actions/upload-artifact@v4
37+
with:
38+
name: Unit Test Results
39+
path: pytest.xml
4040

4141
publish-test-results:
4242
name: "Publish Unit Tests Results"
@@ -46,12 +46,12 @@ jobs:
4646

4747
steps:
4848
- name: Download Artifacts
49-
uses: actions/download-artifact@v2
49+
uses: actions/download-artifact@v4
5050
with:
5151
path: artifacts
5252

5353
- name: Publish Unit Test Results
54-
uses: EnricoMi/publish-unit-test-result-action@v1.7
54+
uses: EnricoMi/publish-unit-test-result-action@v2
5555
with:
5656
check_name: Unit Test Results
5757
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)