Skip to content

Commit

Permalink
adding github action integration test (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
choldgraf authored Apr 23, 2020
1 parent 2c3c74f commit 4540f6a
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 35 deletions.
File renamed without changes.
35 changes: 0 additions & 35 deletions .github/workflows/lint.yml

This file was deleted.

64 changes: 64 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: continuous-integration

on: [push, pull_request]

jobs:

lint:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}

- name: Set up Node/yarn
uses: actions/setup-node@v1
with:
node-version: '10.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pre-commit
pip install -e .
yarn install
- name: Lint
run: |
pre-commit run --all-files
# Build docs on a number of Python versions. In the future this can be
# where tests go.
tests:

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

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install -r docs/requirements.txt
# Build the docs
- name: Build docs to store
run: |
export PATH="$HOME/miniconda/bin:$PATH"
sphinx-build -b html docs/ docs/_build/html -W --keep-going

0 comments on commit 4540f6a

Please sign in to comment.