Skip to content

Commit

Permalink
Simplify action
Browse files Browse the repository at this point in the history
  • Loading branch information
sbird committed Aug 20, 2024
1 parent 50b65ee commit 48be4ed
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# main test workflow; ported from .travis.yaml

name: main

on:
Expand All @@ -24,29 +23,9 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Cache conda
uses: actions/cache@v4
env:
# Increase this value to reset cache.
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key:
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}

- name: Setup Conda Environment
uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: latest
activate-environment: test
show-channel-urls: true
use-only-tar-bz2: true
- name: Build
run: |
conda create --yes -n test python=${{ matrix.python-version }} gcc_linux-64
conda activate test
conda install --yes numpy nose cython mpi4py openmpi
python setup.py install
python -m build
- name: Unit tests
run: |
pip install runtests
Expand Down

0 comments on commit 48be4ed

Please sign in to comment.