examples.md patch #118
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
name : Julia ${{ matrix.version }} - ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
version: | |
- '1.10' | |
- '1.11' | |
os: | |
- ubuntu-22.04 | |
arch: | |
- x64 | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
- name: Create Conda environment | |
run: | | |
mkdir -p ~/miniconda3 | |
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh | |
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3 | |
rm ~/miniconda3/miniconda.sh | |
source ~/miniconda3/bin/activate | |
conda init --all | |
export PATH="$HOME/miniconda/bin:$PATH" | |
conda create --name myenv python=3.10 -y | |
conda activate myenv | |
conda install -c conda-forge -c legate cupynumeric -y | |
- name: Install Julia | |
uses: julia-actions/setup-julia@v1 | |
with: | |
version: ${{ matrix.version }} | |
arch: ${{ matrix.arch }} | |
- uses: julia-actions/cache@v2 | |
- name: Install Dependencies | |
run: | | |
git submodule init | |
git submodule update | |
export CONDA_PREFIX="$HOME/miniconda3/envs/myenv" | |
julia --project=./pkg -e 'using Pkg; Pkg.build(); Pkg.instantiate()' | |
- name: Run Tests | |
run: julia --project=./pkg -e 'using Pkg; Pkg.test()' | |
- uses: julia-actions/julia-processcoverage@v1 | |
- uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
slug: ejmeitz/cuNumeric.jl | |
docs: | |
name : Documentation | |
permissions: | |
actions: write | |
contents: write | |
pull-requests: read | |
statuses: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: julia-actions/setup-julia@v2 | |
with: | |
version: '1' | |
- uses: julia-actions/cache@v2 | |
- name: Install docs dependencies | |
run: julia --project=pkg/docs/ -e 'using Pkg; Pkg.instantiate()' | |
- name: Build and deploy docs | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token | |
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key | |
run: julia --project=pkg/docs/ pkg/docs/make.jl | |