Skip to content

Commit 11fed52

Browse files
authored
Test with Python 3.9 and 3.10 (#458)
* Update Python versions * Skip test_compiled_modules_no in Python >= 3.9 * Skip test_sysimage.test_* in Python >= 3.9 * Ignore Python 3.10 on Windows x86 (not added yet?)
1 parent 0f1ac43 commit 11fed52

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

.github/workflows/main.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ jobs:
1818
- macos-latest
1919
- windows-latest
2020
architecture: [x64, x86]
21-
python-version: ['3.7', '3.8']
21+
python-version:
22+
- '3.9'
23+
- '3.10'
2224
julia-version:
2325
- '1.0'
2426
- '1.6'
@@ -31,13 +33,30 @@ jobs:
3133
architecture: x86
3234
- os: macos-latest
3335
julia-version: '1.6'
36+
- os: windows-latest
37+
architecture: x86
38+
python-version: '3.10' # not added yet?
3439
- os: windows-latest
3540
julia-version: '1.6'
3641
- os: macos-latest
3742
julia-version: 'nightly'
3843
- os: windows-latest
3944
julia-version: 'nightly'
4045
include:
46+
# Python 3.8 for testing `test_compiled_modules_no`:
47+
- os: ubuntu-latest
48+
architecture: x64
49+
python-version: '3.8'
50+
julia-version: '1'
51+
- os: macos-latest
52+
architecture: x64
53+
python-version: '3.8'
54+
julia-version: '1'
55+
- os: windows-latest
56+
architecture: x64
57+
python-version: '3.8'
58+
julia-version: '1'
59+
# Python 2.7 (TODO: drop):
4160
- os: ubuntu-latest
4261
architecture: x64
4362
python-version: '2.7'
@@ -95,6 +114,6 @@ jobs:
95114
- name: Setup python
96115
uses: actions/setup-python@v1
97116
with:
98-
python-version: '3.8'
117+
python-version: '3.10'
99118
- run: python -m pip install --upgrade tox
100119
- run: python -m tox -e ${{ matrix.toxenv }}

src/julia/tests/test_libjulia.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import sys
2+
13
import pytest
24

35
from julia.core import JuliaInfo
@@ -8,6 +10,7 @@
810

911

1012
@pytest.mark.skipif("juliainfo.version_info < (0, 7)")
13+
@pytest.mark.skipif("sys.version_info >= (3, 9)")
1114
@pytest.mark.julia
1215
def test_compiled_modules_no():
1316
runcode(

src/julia/tests/test_sysimage.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os
22
import shutil
3+
import sys
34
from subprocess import check_call
45

56
import pytest
@@ -45,6 +46,7 @@ def assert_sample_julia_code_runs(juliainfo, sysimage_path):
4546
@only_in_ci
4647
@skip_in_windows
4748
@skip_in_apple
49+
@pytest.mark.skipif("sys.version_info >= (3, 9)")
4850
@pytest.mark.parametrize("with_pycall_cache", [False, True])
4951
def test_build_and_load(tmpdir, juliainfo, with_pycall_cache):
5052
skip_early_julia_versions(juliainfo)
@@ -73,6 +75,7 @@ def test_build_and_load(tmpdir, juliainfo, with_pycall_cache):
7375
@only_in_ci
7476
@skip_in_windows # Avoid "LVM ERROR: out of memory"
7577
@skip_in_apple
78+
@pytest.mark.skipif("sys.version_info >= (3, 9)")
7679
def test_build_with_basesysimage_and_load(tmpdir, juliainfo):
7780
skip_early_julia_versions(juliainfo)
7881

0 commit comments

Comments
 (0)