8000 Update workflows to python3.12 · bnavigator/python-control@1236f63 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1236f63

Browse files
committed
Update workflows to python3.12
1 parent 820bf96 commit 1236f63

File tree

4 files changed

+29
-25
lines changed

4 files changed

+29
-25
lines changed

.github/conda-env/build-env.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
name: build-env
22
dependencies:
33
- boa
4-
- numpy !=1.23.0
4+
- numpy

.github/conda-env/test-env.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
name: test-env
22
dependencies:
3-
- conda-build # for conda index
43
- pip
54
- coverage
6-
- coveralls
75
- pytest
86
- pytest-cov
97
- pytest-timeout

.github/workflows/os-blas-test-matrix.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,24 @@ jobs:
2121
- 'ubuntu'
2222
- 'macos'
2323
python:
24-
- '3.8'
25-
- '3.11'
24+
- '3.10'
25+
- '3.12'
2626
bla_vendor: [ 'unset' ]
2727
include:
2828
- os: 'ubuntu'
29-
python: '3.11'
29+
python: '3.12'
3030
bla_vendor: 'Generic'
3131
- os: 'ubuntu'
32-
python: '3.11'
32+
python: '3.12'
3333
bla_vendor: 'OpenBLAS'
3434
- os: 'macos'
35-
python: '3.11'
35+
python: '3.12'
3636
bla_vendor: 'Apple'
3737
- os: 'macos'
38-
python: '3.11'
38+
python: '3.12'
3939
bla_vendor: 'Generic'
4040
- os: 'macos'
41-
python: '3.11'
41+
python: '3.12'
4242
bla_vendor: 'OpenBLAS'
4343

4444
steps:
@@ -108,7 +108,7 @@ jobs:
108108
- 'macos'
109109
- 'windows'
110110
python:
111-
- '3.9'
111+
# build on one, expand matrix in conda-build from the Sylcot/conda-recipe/conda_build_config.yaml
112112
- '3.11'
113113

114114
steps:
@@ -133,14 +133,14 @@ jobs:
133133
shell: bash -l {0}
134134
run: |
135135
set -e
136-
numpyversion=$(python -c 'import numpy; print(numpy.version.version)')
137-
conda mambabuild --python "${{ matrix.python }}" --numpy $numpyversion conda-recipe
136+
conda mambabuild conda-recipe
138137
# preserve directory structure for custom conda channel
139138
find "${CONDA_PREFIX}/conda-bld" -maxdepth 2 -name 'slycot*.tar.bz2' | while read -r conda_pkg; do
140139
conda_platform=$(basename $(dirname "${conda_pkg}"))
141140
mkdir -p "slycot-conda-pkgs/${conda_platform}"
142141
cp "${conda_pkg}" "slycot-conda-pkgs/${conda_platform}/"
143142
done
143+
conda index --no-progress ./slycot-conda-pkgs
144144
- name: Save to local conda pkg channel
145145
uses: actions/upload-artifact@v3
146146
with:
@@ -247,7 +247,7 @@ jobs:
247247
- name: Install Wheel
248248
run: |
249249
python -m pip install --upgrade pip
250-
pip install matplotlib scipy pytest pytest-cov pytest-timeout coverage coveralls
250+
pip install matplotlib scipy pytest pytest-cov pytest-timeout coverage
251251
pip install slycot-wheels/${{ matrix.packagekey }}/slycot*.whl
252252
pip show slycot
253253
- name: Test with pytest
@@ -316,7 +316,6 @@ jobs:
316316
echo "libblas * *mkl" >> $CONDA_PREFIX/conda-meta/pinned
317317
;;
318318
esac
319-
conda index --no-progress ./slycot-conda-pkgs
320319
mamba install -c ./slycot-conda-pkgs slycot
321320
conda list
322321
- name: Test with pytest

.github/workflows/python-package-conda.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
max-parallel: 5
1717
fail-fast: false
1818
matrix:
19-
python-version: ['3.8', '3.12']
19+
python-version: ['3.10', '3.12']
2020
slycot: ["", "conda"]
2121
pandas: [""]
2222
cvxopt: ["", "conda"]
@@ -61,20 +61,27 @@ jobs:
6161
shell: bash -l {0}
6262
env:
6363
MPLBACKEND: ${{ matrix.mplbackend }}
64-
run: pytest -v --cov=control --cov-config=.coveragerc control/tests
64+
run: |
65+
pytest -v --cov=control --cov-config=.coveragerc control/tests
66+
coverage xml
6567
66-
- name: Coveralls parallel
67-
# https://github.com/coverallsapp/github-action
68-
uses: AndreMiras/coveralls-python-action@develop
68+
- name: report coverage
69+
uses: coverallsapp/github-action@v2
6970
with:
71+
flag-name: conda-pytest_py${{ matrix.python-version }}_${{ matrix.slycot || 'no' }}-Slycot_${{ matrix.pandas || 'no' }}-Pandas_${{ matrix.cvxopt || 'no' }}_CVXOPT-${{ matrix.mplbackend && format('; {0}', matrix.mplbackend) }}
7072
parallel: true
73+
file: coverage.xml
7174

72-
coveralls:
73-
name: coveralls completion
74-
needs: test-linux-conda
75+
coveralls-final:
76+
name: Finalize parallel coveralls
77+
if: always()
78+
needs:
79+
- test-linux-conda
7580
runs-on: ubuntu-latest
7681
steps:
7782
- name: Coveralls Finished
78-
uses: AndreMiras/coveralls-python-action@develop
83+
uses: coverallsapp/github-action@v2
7984
with:
80-
parallel-finished: true
85+
parallel-finished: true
86+
87+

0 commit comments

Comments
 (0)
0