Skip to content
Open
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
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:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
strategy:
fail-fast: false
matrix:
version: ['1.10', '1.9']
os: [ubuntu-latest, macos-latest, windows-latest]
arch: [x64]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4


- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}

- uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install matplotlib
run: pip install matplotlib

- name: Build Julia package
uses: julia-actions/julia-buildpkg@v1

- name: Run tests
uses: julia-actions/julia-runtest@v1
55 changes: 55 additions & 0 deletions .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Documentation

on:
pull_request:
branches:
- main

push:
branches:
- main
tags: '*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@latest
with:
version: '1.9'

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install matplotlib

- name: Configure PyCall
run: |
echo "ENV[\"PYTHON\"] = \"$(which python)\"" >> julia-python.jl
cat julia-python.jl
- name: Install dependencies
env:
PYTHON: "" # rebulid PyCall
run: |
julia --project=docs -e '
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.build("PyCall") # rebuild PyCall
Pkg.instantiate()
'

# - name: Install dependencies
# run: julia --color=yes --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'

- name: Build and deploy docs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
PYTHON: ""
run: julia --color=yes --project=docs/ docs/make.jl
Loading