-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Renaming github workflows. * Adding basic workflow. * Modifying workflow. * Adding tests to github actions. * Removing the Travis CI script. * Modifying workflow based on code review. * Adding code coverage. * Testing code coverage with github actions. * Testing code coverage with github actions. * Adding the full set of jobs for github action workflows. * Making changes due to code review.
- Loading branch information
1 parent
a2e266b
commit 52f3b6f
Showing
5 changed files
with
83 additions
and
75 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: Spherical Geometry CI | ||
|
||
# Change 'on' section and add code coverage. | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- "*" | ||
pull_request: | ||
branches: | ||
|
||
jobs: | ||
build: | ||
name: Python Testing ${{ matrix.python-version }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ['3.6', '3.7', '3.8', '3.9'] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -e .[test] | ||
- name: Test with pytest | ||
run: | | ||
pytest | ||
doc_build: | ||
name: Document Build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get install graphviz texlive-latex-extra dvipng | ||
python -m pip install --upgrade pip | ||
python -m pip install -e .[docs] | ||
- name: Build documents with sphinx | ||
run: | | ||
sphinx-build docs build/docs | ||
code_coverage: | ||
name: Code Coverage Report | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -e .[test] | ||
- name: Test with pytest and code coverage | ||
run: | | ||
pytest --cov-report=xml --cov=. --cov-config=setup.cfg | ||
- name: Upload coverage to codecoverage | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
file: ./coverage.xml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -139,6 +139,7 @@ def qd_config(arg): | |
extras_require={ | ||
'test': [ | ||
'pytest', | ||
'pytest-cov', | ||
], | ||
'docs': [ | ||
'sphinx', | ||
|