-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CI.yml - restore to old version
- Loading branch information
1 parent
88a8c03
commit 2bfe787
Showing
1 changed file
with
16 additions
and
70 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,82 +1,28 @@ | ||
name: CI | ||
name: Run tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: ['*'] | ||
pull_request: | ||
concurrency: | ||
# Skip intermediate builds: always. | ||
# Cancel intermediate builds: only if it is a pull request build. | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | ||
types: [opened, synchronize, reopened] | ||
schedule: | ||
- cron: '0 0 * * 0' | ||
|
||
jobs: | ||
test: | ||
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} | ||
test-github-cpuonly: | ||
env: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
version: | ||
- '1.8' | ||
python: [3.9] | ||
os: | ||
- ubuntu-latest | ||
arch: | ||
- x64 | ||
os: [ubuntu-20.04] | ||
julia-version: ['1.8'] | ||
julia-arch: [x64] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 🐍 ${{ matrix.python }} | ||
uses: actions/setup-python@v2 | ||
- uses: julia-actions/setup-julia@latest | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Set up miniconda 🐍 | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
environment-file: ./environment.yml | ||
activate-environment: oggm_env | ||
- name: Activate conda environment for PyCall.jl 🐍 📞 | ||
run: | | ||
conda init bash | ||
source ~/.bashrc | ||
conda activate oggm_env | ||
pip install --upgrade certifi | ||
which python | ||
env: | ||
PYTHON: /usr/share/miniconda/envs/oggm_env/bin/python | ||
- name: Set ENV Variables for PyCall.jl 🐍 📞 | ||
run: export PYTHON=/usr/share/miniconda/envs/oggm_env/bin/python | ||
- uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: ${{ matrix.version }} | ||
arch: ${{ matrix.arch }} | ||
- uses: julia-actions/cache@v1 | ||
- uses: julia-actions/julia-buildpkg@v1 | ||
env: | ||
PYTHON : /usr/share/miniconda/envs/oggm_env/bin/python | ||
- uses: julia-actions/julia-runtest@v1 | ||
- uses: julia-actions/julia-processcoverage@v1 | ||
- uses: codecov/codecov-action@v2 | ||
with: | ||
files: lcov.info | ||
docs: | ||
name: Documentation | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
statuses: write | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: '1.8' | ||
- uses: julia-actions/julia-buildpkg@v1 | ||
- uses: julia-actions/julia-docdeploy@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- run: | | ||
julia --project=docs -e ' | ||
using Documenter: DocMeta, doctest | ||
using ODINN | ||
DocMeta.setdocmeta!(ODINN, :DocTestSetup, :(using ODINN); recursive=true) | ||
doctest(ODINN)' | ||
version: ${{ matrix.julia-version }} | ||
- uses: julia-actions/julia-buildpkg@latest | ||
- uses: julia-actions/julia-runtest@latest |