31 ci benchmarking #174
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: Documentation Build | |
on: | |
push: | |
branches: | |
- main # Reflects your active development branch | |
tags: ['*'] | |
pull_request: | |
jobs: | |
build: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python environment | |
run: | | |
sudo apt-get update | |
sudo apt-get install python3-pip | |
python3 -m pip install --upgrade pip | |
- name: Install GT4Py and atlas4py | |
run: | | |
git clone --branch fix_python_interp_path_in_cmake https://github.com/tehrengruber/gt4py.git | |
cd gt4py | |
pip install -r requirements-dev.txt | |
pip install . | |
pip install -i https://test.pypi.org/simple/ atlas4py | |
- uses: julia-actions/setup-julia@v1 | |
with: | |
version: '1.8' | |
- name: Install Julia dependencies | |
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()' | |
- name: Build and deploy documentation | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Used for Git operations by Documenter.jl | |
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If using SSH deploy keys for secure operations | |
run: julia --project=docs/ docs/make.jl |