-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 882 Bytes
/
Copy pathpython-app.yml
File metadata and controls
36 lines (29 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Run tests and publish the report
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: 3.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest==8.0.0 pytest-html==4.1.1 faker==22.6.0 requests==2.31.0
- name: Run tests and generate report
run: |
mkdir -p testing_results
pytest --html=./testing_results/index.html
- name: Publish test report
uses: peaceiris/actions-gh-pages@v3.9.3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: testing_results