-
Notifications
You must be signed in to change notification settings - Fork 1.9k
103 lines (88 loc) · 2.77 KB
/
overall-tests.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: Overall Test Workflow
on:
push:
branches: [ develop, dev/*, release/* ]
pull_request:
branches: [ develop, dev/*, release/* ]
workflow_dispatch:
permissions:
pull-requests: write
env:
NODE_OPTIONS: --max-old-space-size=4096
jobs:
partial-tests:
uses: ./.github/workflows/partial-tests.yml
coverage:
timeout-minutes: 50
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
id: install-dependencies
uses: ./.github/actions/install
with:
python-version: '3.11'
os: 'ubuntu-latest'
pipfile-version: 'min'
- name: Pytest
run: |
pipenv run pytest --cov=taipy --cov-report="xml:overall-coverage.xml" tests
- name: Coverage
uses: orgoro/[email protected]
with:
coverageFile: overall-coverage.xml
token: ${{ secrets.GITHUB_TOKEN }}
overall-tests:
needs: [partial-tests]
timeout-minutes: 50
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
os: [ubuntu-latest, windows-latest, macos-13]
pipfile-version: ['min', 'max']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{matrix.python-version}}
- name: Install dependencies
id: install-dependencies
uses: ./.github/actions/install
with:
python-version: ${{ matrix.python-version }}
os: ${{ matrix.os }}
pipfile-version: ${{ matrix.pipfile-version }}
- name: Pytest
run: |
pipenv run pytest -m "not orchestrator_dispatcher and not standalone and not teste2e" tests
intermittent-tests:
needs: [partial-tests]
timeout-minutes: 40
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
os: [ubuntu-latest, windows-latest, macos-13]
orchestrator: ['orchestrator_dispatcher', 'standalone']
pipfile-version: ['min', 'max']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{matrix.python-version}}
- name: Install dependencies
uses: ./.github/actions/install
with:
os: ${{ matrix.os }}
install-gui: false
python-version: ${{ matrix.python-version }}
pipfile-version: ${{ matrix.pipfile-version }}
- name: Pytest Core orchestrator_dispatcher
run: pipenv run pytest -m "${{ matrix.orchestrator }}" tests/core