Skip to content

Fix Github CI to run tests for sanity check #182

Fix Github CI to run tests for sanity check

Fix Github CI to run tests for sanity check #182

Workflow file for this run

name: GridTools Ubuntu CI Pipeline
on:
push:
branches:
- main
tags: ['*']
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
julia_version:
- '1.8'
python_version:
- '3.10'
os:
- ubuntu-latest
arch:
- x64
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python_version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libboost-all-dev
python -m pip install --upgrade pip
- name: Install GT4Py
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 .
- name: Install atlas4py
run: |
pip install -i https://test.pypi.org/simple/ atlas4py
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia_version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- name: Archive production artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: dist-without-markdown
path: /tmp/gt4py_cache