Skip to content

Commit f83a11f

Browse files
authored
Revive CI (#930)
* Don't test Python 2.7 on macOS * Install libpython2.7 for `find_libpython` * Use 1.7-rc1 instead of nightly in AOT test
1 parent 8a98fb4 commit f83a11f

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

.github/workflows/aot.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ jobs:
1717
- ubuntu-latest
1818
architecture: [x64]
1919
python-version: ['3.8']
20-
julia-version: ['1.5', 'nightly']
20+
julia-version:
21+
- '1.5'
22+
- '~1.7.0-rc1'
23+
# - 'nightly' # TODO: reenable
2124
fail-fast: false
2225
env:
2326
PYTHON: python${{ matrix.python-version }}
@@ -34,6 +37,9 @@ jobs:
3437
architecture: ${{ matrix.architecture }}
3538
- run: python --version
3639
- run: python -m pip install --user numpy
40+
- name: Install libpython2.7 for `find_libpython` test
41+
run: sudo apt-get install python2.7-dev
42+
if: ${{ matrix.python-version != '2.7' && matrix.os == 'ubuntu-latest' }}
3743
- name: Setup julia
3844
uses: julia-actions/setup-julia@v1
3945
with:

.github/workflows/conda.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ jobs:
3232
${{ matrix.os }} ${{ matrix.architecture }}
3333
steps:
3434
- uses: actions/checkout@v1
35+
- name: Install libpython2.7 for `find_libpython` test
36+
run: sudo apt-get install python2.7-dev
37+
if: ${{ matrix.python-version != '2.7' && matrix.os == 'ubuntu-latest' }}
3538
- name: Setup julia
3639
uses: julia-actions/setup-julia@v1
3740
with:

.github/workflows/system.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,15 @@ jobs:
1818
- macos-latest
1919
- windows-latest
2020
architecture: [x64]
21-
python-version: ['2.7', '3.8']
21+
python-version: ['3.8']
2222
julia-version: ['1.0', '1.5', 'nightly']
2323
include:
24+
# 32 bit Windows:
2425
- os: windows-latest
2526
architecture: x86
2627
python-version: '3.8'
2728
julia-version: '1.5'
29+
# Sweep julia-version only on Ubuntu:
2830
- os: ubuntu-latest
2931
architecture: x64
3032
python-version: '3.7'
@@ -37,6 +39,16 @@ jobs:
3739
architecture: x64
3840
python-version: '3.8'
3941
julia-version: '1.3'
42+
# Test Python 2.7 only with a few combinations (TODO: drop 2.7).
43+
# Note that it does not work in macOS:
44+
- os: ubuntu-latest
45+
architecture: x64
46+
python-version: '2.7'
47+
julia-version: '1.5'
48+
- os: windows-latest
49+
architecture: x64
50+
python-version: '2.7'
51+
julia-version: '1.5'
4052
fail-fast: false
4153
name: Test
4254
Julia ${{ matrix.julia-version }}
@@ -56,6 +68,9 @@ jobs:
5668
if: ${{ matrix.python-version != '2.7' }}
5769
- run: virtualenv --version
5870
if: ${{ matrix.python-version != '2.7' }}
71+
- name: Install libpython2.7 for `find_libpython` test
72+
run: sudo apt-get install python2.7-dev
73+
if: ${{ matrix.python-version != '2.7' && matrix.os == 'ubuntu-latest' }}
5974
- name: Setup julia
6075
uses: julia-actions/setup-julia@v1
6176
with:

0 commit comments

Comments
 (0)