Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test multithreading, other OS, and Julia versions #14

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 35 additions & 7 deletions .github/workflows/tests_and_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,44 @@ on:

jobs:
build:
runs-on: ubuntu-latest
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.version == 'nightly' || matrix.version == '^1.10.0-0' }}
strategy:
matrix:
julia-version: ['1.7', '1.8', '1.9']
fail-fast: false
matrix:
version:
- '1.9'
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x64
include:
- version: '1.7'
os: ubuntu-latest
arch: x64
- version: '1.8'
os: ubuntu-latest
arch: x64
- version: '^1.10.0-0'
os: ubuntu-latest
arch: x64
allow_failure: true
- version: 'nightly'
os: ubuntu-latest
arch: x64
allow_failure: true
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.julia-version }}
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- name: Set JULIA_NUM_THREADS for Julia 1.9 on Ubuntu
if: matrix.version == '1.9' && matrix.os == 'ubuntu-latest'
run: echo "JULIA_NUM_THREADS=2" >> $GITHUB_ENV
- uses: actions/setup-python@v2
with:
python-version: '3.8'
Expand All @@ -32,4 +60,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # if authenticating with GitHub Actions token
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # if authenticating with SSH deploy key
BUILD_DOCS: ${{ matrix.julia-version == '1.7' }} # only build/deploy docs from one version
timeout-minutes: 30
timeout-minutes: 30
2 changes: 1 addition & 1 deletion test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"

[compat]
Soss = "0.21.2"
Turing = "0.21.10"
Turing = "0.21.10"