Skip to content

Commit

Permalink
Merge pull request #28 from scikit-hep/je_github_action
Browse files Browse the repository at this point in the history
github actions
  • Loading branch information
chrisburr committed Dec 15, 2020
2 parents 53d73bd + 654b329 commit 444bb74
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/python-package.yml
@@ -0,0 +1,30 @@
name: Python package

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9']

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install coveralls
pip install pytest
pip install pytest-cov
pip install numexpr
pip install -e .
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
run: |
pytest --cov=formulate --verbose --run-slow

0 comments on commit 444bb74

Please sign in to comment.