Skip to content

Commit

Permalink
Add github workflow for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
op3 committed Apr 22, 2024
1 parent dabd1fa commit 1ec8c2e
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 19 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Test

on: [push, pull_request]

jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
sympy-version: ['1.12', '1.11', '1.10', '1.9', '1.8', '1.7', '1.6']

steps:
- uses: actions/checkout@v2

- name: Setup conda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
miniconda-version: "latest"
mamba-version: "*"
channels: conda-forge
python-version: ${{ matrix.python-version }}

- name: Install dependencies
shell: bash -l {0}
run: mamba install sympy=${{ matrix.sympy-version }} pytest

- name: Test with pytest
shell: bash -l {0}
run: pytest -v --color=yes test
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# angcorrwat

[![Build Status](https://travis-ci.com/op3/angcorrwat.svg?branch=master)](https://travis-ci.com/op3/angcorrwat)
![Build Status](https://github.com/op3/angcorrwat/actions/workflows/run-tests.yml/badge.svg)
[![License](https://img.shields.io/badge/License-GPL%20v3+-blue.svg)](LICENSE)
[![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/op3/angcorrwat/master?filepath=doc%2Ftutorial.ipynb)

Expand Down

0 comments on commit 1ec8c2e

Please sign in to comment.