Skip to content

update CI

update CI #2

Workflow file for this run

name: Continuous Integration Tests
on:
pull_request:
branches: [master, develop]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:

Check failure on line 12 in .github/workflows/ci_test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci_test.yml

Invalid workflow file

You have an error in your yaml syntax on line 12
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ['3.9', '3.12']
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 250
fetch-tags: true
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
mamba-version: "*"
channels: conda-forge
channel-priority: strict
auto-update-conda: true
miniconda-version: "latest"
activate-environment: ci_test
environment-file: environment.yml
- name: Set up Conda environment
shell: bash -l {0}
run: |
conda list -n ci_test
- name: Install gcc for macOS
shell: bash -l {0}
if: ${{ matrix.os == 'macos-latest' }}
run: |
brew reinstall gcc
- name: Build using pip
shell: bash -l {0}
run: |
conda env list
pip install --no-deps .
- name: Run tests
shell: bash -l {0}
run: |
conda env list
python examples/notebooks/test_notebooks.py
export MPLBACKEND=Agg
make -C examples/python -f Makefile no-timing
mkdir empty && cd empty
python -c "import pyshtools"