Skip to content

Commit

Permalink
Merge pull request FEniCS#42 from FEniCS/garth/actions
Browse files Browse the repository at this point in the history
Add Github Actions
  • Loading branch information
garth-wells authored Apr 28, 2020
2 parents 825b23a + c536171 commit 29bdfbf
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This workflow will install Python dependencies, run tests and lint
# with a single version of Python For more information see:
# https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: FIAT

on: [push, pull_request]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.7, 3.8]

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Lint with flake8
run: |
pip install flake8
flake8 --statistics .
- name: Check documentation style
run: |
pip install pydocstyle
python -m pydocstyle .
- name: Install FIAT
run: pip install .
- name: Test with pytest
run: |
pip install pytest
DATA_REPO_GIT="" pytest -v test/

0 comments on commit 29bdfbf

Please sign in to comment.