-
Notifications
You must be signed in to change notification settings - Fork 35
54 lines (45 loc) · 1.25 KB
/
pymake-requests.yml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: pymake requests
on:
schedule:
- cron: '0 7 * * *' # run at 7 AM UTC every day
push:
branches:
- master
pull_request:
branches:
- master
jobs:
pymakeCI-requests:
name: pymake CI requests
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up Python
uses: actions/[email protected]
with:
python-version: "3.10"
- name: Install python packages
run: |
python -m pip install --upgrade pip
pip install ".[test]"
- name: Run pytest
working-directory: ./autotest
run: |
pytest -v -n=auto -m requests --durations=0 --cov=pymake --cov-report=xml
- name: Run scheduled tests
if: ${{ github.event_name == 'schedule' }}
working-directory: ./autotest
run: |
pytest -v -m="schedule" --durations=0 --cov=pymake --cov-report=xml
- name: Print coverage report before upload
working-directory: ./autotest
run: |
coverage report
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
file: ./autotest/coverage.xml