Skip to content

Fix PyJulia on Python 3.12 #264

Fix PyJulia on Python 3.12

Fix PyJulia on Python 3.12 #264

Workflow file for this run

name: Main workflow
on:
push:
branches:
- master
tags: '*'
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
architecture: [x64, x86]
python-version:
- '3.9'
- '3.12'
julia-version:
- '1.4'
- '1.7'
- '1.8'
- '1.9'
exclude:
- os: ubuntu-latest
architecture: x86
- os: macos-latest
architecture: x86
- os: macos-latest
julia-version: '1.6'
- os: windows-latest
julia-version: '1.6'
- os: macos-latest
julia-version: 'nightly'
- os: windows-latest
julia-version: 'nightly'
include:
# Python 3.8 for testing `test_compiled_modules_no`:
- os: ubuntu-latest
architecture: x64
python-version: '3.8'
julia-version: '1'
- os: macos-latest
architecture: x64
python-version: '3.8'
julia-version: '1'
- os: windows-latest
architecture: x64
python-version: '3.8'
julia-version: '1'
fail-fast: false
name: Test
py${{ matrix.python-version }}
jl${{ matrix.julia-version }}
${{ matrix.os }} ${{ matrix.architecture }}
steps:
- uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
- name: Setup julia
uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.architecture }}
- run: python src/julia/find_libpython.py --list-all --verbose
- name: Install tox
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade tox
- name: Install PyCall
run: python ci/install_pycall.py
- name: Run test
run: python -m tox -- --verbose --cov=julia
env:
CI: 'true' # run tests marked by @only_in_ci
TOXENV: py
PYJULIA_TEST_REBUILD: 'yes'
- run: cat .tox/py/log/pytest.log
if: always()
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
name: codecov-umbrella
check:
runs-on: ubuntu-latest
strategy:
matrix:
toxenv: ['style', 'doc']
fail-fast: false
name: Check ${{ matrix.toxenv }}
steps:
- uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: python -m pip install --upgrade tox
- run: python -m tox -e ${{ matrix.toxenv }}