Skip to content

Commit 4540f6a

Browse files
authored
adding github action integration test (#161)
1 parent 2c3c74f commit 4540f6a

File tree

3 files changed

+64
-35
lines changed

3 files changed

+64
-35
lines changed
File renamed without changes.

.github/workflows/lint.yml

-35
This file was deleted.

.github/workflows/tests.yml

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: continuous-integration
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
7+
lint:
8+
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
python-version: [3.8]
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v1
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
22+
- name: Set up Node/yarn
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: '10.x'
26+
27+
- name: Install dependencies
28+
run: |
29+
python -m pip install --upgrade pip
30+
python -m pip install --upgrade pre-commit
31+
pip install -e .
32+
yarn install
33+
34+
- name: Lint
35+
run: |
36+
pre-commit run --all-files
37+
38+
39+
# Build docs on a number of Python versions. In the future this can be
40+
# where tests go.
41+
tests:
42+
43+
runs-on: ubuntu-latest
44+
strategy:
45+
matrix:
46+
python-version: [3.6, 3.7, 3.8]
47+
48+
steps:
49+
- uses: actions/checkout@v2
50+
- name: Set up Python ${{ matrix.python-version }}
51+
uses: actions/setup-python@v1
52+
with:
53+
python-version: ${{ matrix.python-version }}
54+
- name: Install dependencies
55+
run: |
56+
python -m pip install --upgrade pip
57+
pip install -e .
58+
pip install -r docs/requirements.txt
59+
60+
# Build the docs
61+
- name: Build docs to store
62+
run: |
63+
export PATH="$HOME/miniconda/bin:$PATH"
64+
sphinx-build -b html docs/ docs/_build/html -W --keep-going

0 commit comments

Comments
 (0)