Skip to content

Commit 5bdcef3

Browse files
authored
Update CI tools (#509)
1 parent 1b0515d commit 5bdcef3

File tree

5 files changed

+34
-116
lines changed

5 files changed

+34
-116
lines changed

.appveyor.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

.circleci/config.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/python-package.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
os: [ubuntu-20.04, macos-10.15, windows-latest]
20-
python-version: [3.6, 3.7, 3.8, 3.9]
19+
os: [ubuntu-latest, macos-latest, windows-latest]
20+
python-version: ["3.8", "3.9", "3.10", "3.11"]
2121

2222
steps:
2323
- uses: actions/checkout@v2
@@ -26,17 +26,22 @@ jobs:
2626
uses: actions/setup-python@v2
2727
with:
2828
python-version: ${{ matrix.python-version }}
29-
30-
- name: Brew unlink gcc@9 to avoid build error with OpenMP on MacOS
31-
if: matrix.os == 'macos-10.15'
32-
run: brew unlink gcc@9
29+
cache: 'pip'
3330

3431
- name: Display Python version
3532
run: python -c "import sys; print(sys.version)"
3633

37-
- name: Install dependencies
34+
- name: Upgrade pip wheel setuptools
35+
run: python -m pip install wheel setuptools pip --upgrade
36+
37+
- name: Install numpy
38+
run: |
39+
python -m pip install numpy==1.24.3
40+
python -c "import numpy; print(numpy.__version__)"
41+
42+
- name: Install other dependencies
3843
run: |
39-
python -m pip install --only-binary=numpy,scipy numpy scipy Cython pytest pytest-cov flake8
44+
python -m pip install scipy Cython pytest pytest-cov flake8
4045
python -m pip install -e .[tests]
4146
4247
- name: Lint with flake8

.github/workflows/python-publish.yml

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
os: [ubuntu-20.04, macos-10.15, windows-latest]
23-
python-version: [3.6, 3.7, 3.8, 3.9]
22+
os: [ubuntu-latest, macos-latest, windows-latest]
23+
python-version: ["3.8", "3.9", "3.10", "3.11"]
2424

2525
steps:
2626
- uses: actions/checkout@v2
@@ -30,22 +30,23 @@ jobs:
3030
with:
3131
python-version: ${{ matrix.python-version }}
3232

33-
- name: Brew unlink gcc@9 to avoid build error with OpenMP on MacOS
34-
if: matrix.os == 'macos-10.15'
35-
run: brew unlink gcc@9
36-
3733
- name: Display Python version
3834
run: python -c "import sys; print(sys.version)"
3935

40-
- name: Install dependencies
36+
- name: Install numpy
37+
run: |
38+
python -m pip install numpy==1.24.3
39+
python -c "import numpy; print(numpy.__version__)"
40+
41+
- name: Install other dependencies
4142
run: |
42-
python -m pip install --only-binary=numpy,scipy numpy scipy Cython wheel
43+
python -m pip install scipy Cython wheel
4344
4445
- name: Build wheels
4546
run: python setup.py bdist_wheel
4647

4748
- name: Rename Linux wheels to supported platform of PyPI
48-
if: matrix.os == 'ubuntu-20.04'
49+
if: matrix.os == 'ubuntu-latest'
4950
run: for f in dist/*.whl; do mv "$f" "$(echo "$f" | sed s/linux/manylinux1/)"; done
5051

5152
- name: Publish wheels to GitHub artifacts
@@ -57,7 +58,7 @@ jobs:
5758

5859
publish-pypi:
5960
needs: [build-wheels]
60-
runs-on: ubuntu-20.04
61+
runs-on: ubuntu-latest
6162
steps:
6263
- uses: actions/checkout@v2
6364

@@ -69,14 +70,19 @@ jobs:
6970
- name: Set up Python
7071
uses: actions/setup-python@v2
7172
with:
72-
python-version: 3.9
73+
python-version: "3.10"
7374

7475
- name: Display Python version
7576
run: python -c "import sys; print(sys.version)"
7677

77-
- name: Install dependencies
78+
- name: Install numpy
79+
run: |
80+
python -m pip install numpy==1.24.3
81+
python -c "import numpy; print(numpy.__version__)"
82+
83+
- name: Install other dependencies
7884
run: |
79-
python -m pip install --only-binary=numpy,scipy numpy scipy Cython wheel
85+
python -m pip install scipy Cython wheel
8086
8187
- name: Build source tar file
8288
run: python setup.py sdist

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,10 +311,10 @@ def extract_gcc_binaries():
311311
"Intended Audience :: Education",
312312
"Intended Audience :: Developers",
313313
"Programming Language :: Python :: 3",
314-
"Programming Language :: Python :: 3.6",
315-
"Programming Language :: Python :: 3.7",
316314
"Programming Language :: Python :: 3.8",
317315
"Programming Language :: Python :: 3.9",
316+
"Programming Language :: Python :: 3.10",
317+
"Programming Language :: Python :: 3.11",
318318
"License :: OSI Approved :: Apache Software License",
319319
"Topic :: Software Development",
320320
"Topic :: Scientific/Engineering",

0 commit comments

Comments
 (0)