@@ -21,107 +21,119 @@ on:
2121
2222jobs :
2323 linux :
24-
25- runs-on : ubuntu-latest
24+ runs-on : ubuntu-22.04
2625 if : " !contains(github.event.head_commit.message, 'no ci')"
2726 strategy :
2827 max-parallel : 5
2928 matrix :
3029 python-version : ['3.9', '3.10', '3.11', '3.12', '3.13']
3130
3231 steps :
33- - uses : actions/checkout@v1
34- - name : Set up Python ${{ matrix.python-version }}
35- uses : actions/setup-python@v1
36- with :
37- python-version : ${{ matrix.python-version }}
38- - name : Install dependencies
39- run : |
40- python -m pip install --upgrade pip
41- pip install -r requirements.txt
42- pip install coverage
43- - name : Update version in setup.py
44- run : >-
45- sed -i "s/{{VERSION_PLACEHOLDER}}/0.0.0/g" setup.py
46- - name : Install PEPit
47- run : |
48- pip install -e .
49- - name : Install MOSEK
50- run : |
51- pip install mosek
52- - name : Setup MOSEK license, run tests and generate report
53- env :
54- MOSEKLM_LICENSE_FILE : ${{ secrets.MSK_LICENSE }}
55- run : |
56- coverage run -m unittest tests/test_*
57- - name : Upload Coverage to Codecov
58- uses : codecov/codecov-action@v3
32+ - uses : actions/checkout@v4
5933
34+ - name : Set up Python ${{ matrix.python-version }}
35+ uses : actions/setup-python@v5
36+ with :
37+ python-version : ${{ matrix.python-version }}
38+ cache : ' pip'
6039
61- linux_no_mosek :
40+ - name : Install dependencies
41+ run : |
42+ python -m pip install --upgrade pip
43+ python -m pip install -r requirements.txt
44+ python -m pip install coverage
45+
46+ - name : Update version in setup.py
47+ run : sed -i "s/{{VERSION_PLACEHOLDER}}/0.0.0/g" setup.py
48+
49+ - name : Install PEPit
50+ run : python -m pip install -e .
51+
52+ - name : Install MOSEK
53+ run : python -m pip install mosek
54+
55+ - name : Setup MOSEK license, run tests and generate report
56+ env :
57+ MOSEKLM_LICENSE_FILE : ${{ secrets.MSK_LICENSE }}
58+ run : |
59+ coverage run -m unittest tests/test_*
6260
63- runs-on : ubuntu-latest
61+ - name : Upload Coverage to Codecov
62+ uses : codecov/codecov-action@v3
63+
64+
65+ linux_no_mosek :
66+ runs-on : ubuntu-22.04
6467 if : " !contains(github.event.head_commit.message, 'no ci')"
6568 strategy :
6669 max-parallel : 5
6770 matrix :
6871 python-version : ['3.9', '3.10', '3.11', '3.12', '3.13']
6972
7073 steps :
71- - uses : actions/checkout@v1
72- - name : Set up Python ${{ matrix.python-version }}
73- uses : actions/setup-python@v1
74- with :
75- python-version : ${{ matrix.python-version }}
76- - name : Install dependencies
77- run : |
78- python -m pip install --upgrade pip
79- pip install -r requirements.txt
80- pip install coverage
81- - name : Update version in setup.py
82- run : >-
83- sed -i "s/{{VERSION_PLACEHOLDER}}/0.0.0/g" setup.py
84- - name : Install PEPit
85- run : |
86- pip install -e .
87- - name : Run tests and generate report
88- run : |
89- coverage run -m unittest tests/test_*
90- - name : Upload Coverage to Codecov
91- uses : codecov/codecov-action@v3
74+ - uses : actions/checkout@v4
9275
76+ - name : Set up Python ${{ matrix.python-version }}
77+ uses : actions/setup-python@v5
78+ with :
79+ python-version : ${{ matrix.python-version }}
80+ cache : ' pip'
9381
94- linux_no_mosek_license :
82+ - name : Install dependencies
83+ run : |
84+ python -m pip install --upgrade pip
85+ python -m pip install -r requirements.txt
86+ python -m pip install coverage
87+
88+ - name : Update version in setup.py
89+ run : sed -i "s/{{VERSION_PLACEHOLDER}}/0.0.0/g" setup.py
90+
91+ - name : Install PEPit
92+ run : python -m pip install -e .
9593
96- runs-on : ubuntu-latest
94+ - name : Run tests and generate report
95+ run : |
96+ coverage run -m unittest tests/test_*
97+
98+ - name : Upload Coverage to Codecov
99+ uses : codecov/codecov-action@v3
100+
101+
102+ linux_no_mosek_license :
103+ runs-on : ubuntu-22.04
97104 if : " !contains(github.event.head_commit.message, 'no ci')"
98105 strategy :
99106 max-parallel : 5
100107 matrix :
101108 python-version : ['3.9', '3.10', '3.11', '3.12', '3.13']
102109
103110 steps :
104- - uses : actions/checkout@v1
105- - name : Set up Python ${{ matrix.python-version }}
106- uses : actions/setup-python@v1
107- with :
108- python-version : ${{ matrix.python-version }}
109- - name : Install dependencies
110- run : |
111- python -m pip install --upgrade pip
112- pip install -r requirements.txt
113- pip install coverage
114- - name : Update version in setup.py
115- run : >-
116- sed -i "s/{{VERSION_PLACEHOLDER}}/0.0.0/g" setup.py
117- - name : Install PEPit
118- run : |
119- pip install -e .
120- - name : Setup MOSEK
121- run : |
122- pip install mosek
123- - name : Run tests and generate report
124- run : |
125- coverage run -m unittest tests/test_*
126- - name : Upload Coverage to Codecov
127- uses : codecov/codecov-action@v3
111+ - uses : actions/checkout@v4
112+
113+ - name : Set up Python ${{ matrix.python-version }}
114+ uses : actions/setup-python@v5
115+ with :
116+ python-version : ${{ matrix.python-version }}
117+ cache : ' pip'
118+
119+ - name : Install dependencies
120+ run : |
121+ python -m pip install --upgrade pip
122+ python -m pip install -r requirements.txt
123+ python -m pip install coverage
124+
125+ - name : Update version in setup.py
126+ run : sed -i "s/{{VERSION_PLACEHOLDER}}/0.0.0/g" setup.py
127+
128+ - name : Install PEPit
129+ run : python -m pip install -e .
130+
131+ - name : Setup MOSEK
132+ run : python -m pip install mosek
133+
134+ - name : Run tests and generate report
135+ run : |
136+ coverage run -m unittest tests/test_*
137+
138+ - name : Upload Coverage to Codecov
139+ uses : codecov/codecov-action@v3
0 commit comments