Skip to content
Merged
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
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4

- name: Set up Julia
uses: julia-actions/setup-julia@v2
with:
version: "1.10" # Explicitly use the stable LTS

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Install dependencies
run: pip install . pytest

- name: Initialize Julia via Python
run: python -c "import juliacall"
env:
# This tells juliapkg: "Don't download Julia, use the one I just installed"
PYTHON_JULIAPKG_EXE: julia

- name: Run tests
run: pytest tests/
env:
PYTHON_JULIAPKG_EXE: julia
PYTHON_JULIAPKG_OFFLINE: "yes"
Loading