Skip to content

Commit

Permalink
Added Codecov to Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasstolker committed Sep 24, 2021
1 parent a50f5f1 commit 2acdd68
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ jobs:

- name: Install dependencies
run: |
sudo apt-get install pandoc
python -m pip install --upgrade pip
pip install flake8 pytest pytest-cov
pip install flake8 pytest pytest-cov sphinx
pip install -r docs/requirements.txt
pip install -r requirements.txt
pip install .
Expand All @@ -33,6 +35,13 @@ jobs:
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Build documentation
run: |
make docs
- name: Run pytest
run: |
make test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*.pyc
.DS_Store
.coverage
coverage.xml
.pytest_cache/
docs/_build
docs/api
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ coverage:
coverage report -m

test:
pytest --cov=diskmap/
pytest --cov=diskmap/ --cov-report=xml

clean:
find . -name '*.pyc' -exec rm -f {} +
Expand All @@ -43,3 +43,4 @@ clean:
rm -rf diskmap.egg-info/
rm -rf .pytest_cache/
rm -f .coverage
rm -f coverage.xml
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
.. image:: https://img.shields.io/readthedocs/diskmap
:target: http://diskmap.readthedocs.io

.. image:: https://img.shields.io/coveralls/github/tomasstolker/diskmap
:target: https://coveralls.io/github/tomasstolker/diskmap
.. image:: https://codecov.io/gh/tomasstolker/diskmap/branch/main/graph/badge.svg?token=UZ7OS5WR9C
:target: https://codecov.io/gh/tomasstolker/diskmap

.. image:: https://img.shields.io/codefactor/grade/github/tomasstolker/diskmap
:target: https://www.codefactor.io/repository/github/tomasstolker/diskmap
Expand All @@ -23,7 +23,7 @@
:target: https://github.com/tomasstolker/diskmap/blob/main/LICENSE

.. image:: https://mybinder.org/badge_logo.svg
:target: https://mybinder.org/v2/gh/tomasstolker/diskmap/HEAD
:target: https://mybinder.org/v2/gh/tomasstolker/diskmap/HEAD

*diskmap* is a tool for scattered light mapping of protoplanetary disks. The disk surface is parameterized with a power law profile or read from an input file. The projected radius and scattering angle are then calculated at each pixel. From this, a 3D deprojected image and a stellar irradiation corrected image are computed. Also a polarized scattering phase function is extracted and an total intensity phase function is estimated.

Expand Down
Empty file added tests/__init__.py
Empty file.

0 comments on commit 2acdd68

Please sign in to comment.