Skip to content

Update CHANGELOG.md #267

Update CHANGELOG.md

Update CHANGELOG.md #267

Workflow file for this run

name: Test
on:
push:
branches:
- main
tags: ["*"]
workflow_dispatch:
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
timeout-minutes: 80
strategy:
fail-fast: false
matrix:
version:
- '1.10'
- '1.11'
- '1'
os:
- ubuntu-latest
build_is_production_build:
- true
arch:
- x64
include:
- os: windows-latest
arch: x64
version: 1
build_is_production_build: true
- os: macOS-latest
arch: aarch64
version: 1
build_is_production_build: true
steps:
- name: Install matplotlib and xvfb
run: |
if [ "$RUNNER_OS" = "Linux" ]; then
sudo apt-get update
sudo apt-get install -y python3-matplotlib xvfb
fi
shell: bash
- name: Start virtual display
run: |
if [ "$RUNNER_OS" = "Linux" ]; then
Xvfb :99 -screen 0 1024x768x24 &
echo "DISPLAY=:99" >> $GITHUB_ENV
fi
shell: bash
- uses: actions/checkout@v6
- name: Use default manifest
run: |
if [ -f Manifest.toml.default ]; then cp Manifest.toml.default Manifest.toml; fi
shell: bash
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- name: Build PyCall
run: julia --project -e 'ENV["PYTHON"]=""; using Pkg; Pkg.instantiate(); Pkg.add("PyCall"); Pkg.build("PyCall")'
shell: bash
- uses: julia-actions/julia-runtest@v1
env:
BUILD_IS_PRODUCTION_BUILD: ${{ matrix.build_is_production_build }}
with:
coverage: false
test-with-code-coverage:
name: Julia ${{ matrix.julia_version }} - ${{ matrix.os }} - ${{ matrix.julia_arch }} - with code coverage
timeout-minutes: 80
strategy:
fail-fast: false
matrix:
julia_version:
- "1.10"
julia_arch:
- x64
os:
- ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Install matplotlib and xvfb
run: |
if [ "$RUNNER_OS" = "Linux" ]; then
sudo apt-get update
sudo apt-get install -y python3-matplotlib xvfb
fi
shell: bash
- name: Start virtual display
run: |
if [ "$RUNNER_OS" = "Linux" ]; then
Xvfb :99 -screen 0 1024x768x24 &
echo "DISPLAY=:99" >> $GITHUB_ENV
fi
shell: bash
- uses: actions/checkout@v6
- name: Use default manifest
run: |
if [ -f Manifest.toml.default ]; then cp Manifest.toml.default Manifest.toml; fi
shell: bash
- uses: julia-actions/setup-julia@v2
with:
arch: ${{ matrix.julia_arch }}
version: ${{ matrix.julia_version }}
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- name: Build PyCall
run: julia --project -e 'ENV["PYTHON"]=""; using Pkg; Pkg.instantiate(); Pkg.add("PyCall"); Pkg.build("PyCall")'
shell: bash
- uses: julia-actions/julia-runtest@v1
env:
BUILD_IS_PRODUCTION_BUILD: false
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
continue-on-error: true