-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from ronawho/github-actions
Migrate our sphinx domain to github actions [reviewed by @lydia-duncan] Migrate from Travis to Github Actions. Travis is no longer free (or well supported), so migrate to github actions. For the most part this is a direct transliteration of the Travis job, but the main coveralls github-action doesn't work with xml (coverallsapp/github-action#30), so switch to using codecov, which provides similar functionality. Here's some resources I used: - https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions - https://github.com/codecov/codecov-action Resolves Cray/chapel-private#1804
- Loading branch information
Showing
5 changed files
with
38 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.6" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -r requirements.txt -r test-requirements.txt -r docs-requirements.txt | ||
- name: Lint | ||
run: flake8 sphinxcontrib/ | ||
- name: Test | ||
run: nosetests --verbose --with-cov --cov-report xml --cover-package=sphinxcontrib.chapeldomain | ||
- name: Make docs | ||
run: | | ||
( export PYTHONPATH=`pwd` && cd docs/ && make html ) | ||
( export PYTHONPATH=`pwd` && cd doc-test/ && make html ) | ||
- name: Codecode | ||
uses: codecov/codecov-action@v2 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
coveralls | ||
flake8 | ||
mock | ||
nose | ||
|