Skip to content

Commit

Permalink
Run unit tests on Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
c-w committed Aug 8, 2020
1 parent c5e3eb0 commit 1c78a7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ jobs:
strategy:
matrix:
python-version: [2.7, 3.8]
os: [ubuntu]
os: [ubuntu, windows, macos]
opts: ['-s', '']

steps:
- uses: actions/checkout@v2
Expand All @@ -17,3 +18,4 @@ jobs:
python-version: ${{ matrix.python-version }}
- run: make install
- run: make lint
- run: make -e DOCS_OPTS="${{ matrix.opts }}" docs
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
DOCS_BRANCH := gh-pages
DOCS_REMOTE := origin
DOCS_OPTS := -p

install:
pip install -r requirements-dev.txt
Expand All @@ -10,7 +11,7 @@ lint:

docs:
./docs/build.py > docs/index.html
./ghp_import.py -p docs/ -b $(DOCS_BRANCH) -r $(DOCS_REMOTE)
./ghp_import.py $(DOCS_OPTS) docs/ -b $(DOCS_BRANCH) -r $(DOCS_REMOTE)

clean:
python -c "import os; os.remove(os.path.join('docs', 'index.html'))"
Expand Down

0 comments on commit 1c78a7e

Please sign in to comment.