Repository navigation
106 lines (87 loc) · 3.32 KB
/
Copy pathfullTest.yaml
File metadata and controls
106 lines (87 loc) · 3.32 KB
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
104
105
106
name: Full Test
on:
pull_request:
branches:
- main
push:
paths:
- '.github/workflows/fullTest.yaml'
workflow_dispatch:
jobs:
testPython310:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
cache-dependency-path: 'pyproject.toml'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install -e ".[dev,test]"
- name: Download Models
id: DownloadModelsAttempt1
run: python -c "import pysipfenn; c = pysipfenn.Calculator(); c.downloadModels(); c.loadModels();"
continue-on-error: true
- name: Download Models Retry if failed the first time
if: steps.DownloadModelsAttempt1.outcome == 'failure'
run: python -c "import time; time.sleep(120); import pysipfenn; c = pysipfenn.Calculator(autoLoad=False); c.downloadModels(); c.loadModels();"
- name: Test with pytest
run: pytest --durations=0
env:
MODELS_FETCHED: true
testPython311:
needs: testPython310
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
cache-dependency-path: 'pyproject.toml'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install -e ".[dev,test]"
- name: Download Models
id: DownloadModelsAttempt1
run: python -c "import pysipfenn; c = pysipfenn.Calculator(); c.downloadModels(); c.loadModels();"
continue-on-error: true
- name: Download Models Retry if failed the first time
if: steps.DownloadModelsAttempt1.outcome == 'failure'
run: python -c "import time; time.sleep(120); import pysipfenn; c = pysipfenn.Calculator(autoLoad=False); c.downloadModels(); c.loadModels();"
- name: Test with pytest
run: pytest --durations=0
env:
MODELS_FETCHED: true
testPython312:
needs: testPython311
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
cache-dependency-path: 'pyproject.toml'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install -e ".[dev,test]"
- name: Download Models
id: DownloadModelsAttempt1
run: python -c "import pysipfenn; c = pysipfenn.Calculator(); c.downloadModels(); c.loadModels();"
continue-on-error: true
- name: Download Models Retry if failed the first time
if: steps.DownloadModelsAttempt1.outcome == 'failure'
run: python -c "import time; time.sleep(120); import pysipfenn; c = pysipfenn.Calculator(autoLoad=False); c.downloadModels(); c.loadModels();"
- name: Test with pytest
run: pytest --durations=0
env:
MODELS_FETCHED: true