Skip to content

Commit

Permalink
boring cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Apr 12, 2021
1 parent c75459a commit 1a04d70
Show file tree
Hide file tree
Showing 10 changed files with 121 additions and 241 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Checks

on:
push:
pull_request:
schedule:
- cron: "0 0 1 * *"

jobs:
build:

runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.7', '3.8']
os: [macos-latest, ubuntu-latest, windows-latest]

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: |
# prerequisites
python -m pip install --upgrade pip wheel
python -m pip install codecov coverage flake8 pytest
# install dependencies
pip install -e .
# show installed packages
pip freeze
- name: Test with pytest
run: |
coverage run --source=radontea -m pytest tests
- name: Lint with flake8
run: |
flake8 .
- name: Submit code coverage
run: |
coverage report -m
codecov
29 changes: 29 additions & 0 deletions .github/workflows/deploy_pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release to PyPI

on:
push:
tags:
- '*'

jobs:
deploy:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install -e .
- name: Build and publish
env:
TWINE_USERNAME: ci_qpi
TWINE_PASSWORD: ${{ secrets.PYPI_PWD }}
run: |
python setup.py sdist bdist_wheel
twine upload --skip-existing dist/*
9 changes: 7 additions & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
version: 2
formats:
- pdf
requirements_file: docs/requirements.txt
python:
version: 3
version: 3.8
install:
- requirements: docs/requirements.txt
- method: pip
path: .
system_packages: false
43 changes: 0 additions & 43 deletions .travis.yml

This file was deleted.

4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
0.4.9
- build: setup.py test is deprecated
- build: moved from travisCI to GitHub Actions
- docs: refurbish docs
0.4.8
- ref: move sinogram generation in tests to separate file, thanks @SZanko
- ref: deprecation warning int for numpy 1.20.0, thanks @SZanko
Expand Down
21 changes: 10 additions & 11 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,36 @@ radontea

|PyPI Version| |Tests Status| |Coverage Status| |Docs Status|

Algorithms to compute the inverse Radon transform (e.g. SART, backprojection, Fourier interpolation).
Algorithms to compute the inverse Radon transform (e.g. SART,
backprojection, Fourier interpolation).


Documentation
-------------
The documentation, including the reference and examples, is available at `radontea.readthedocs.io <https://radontea.readthedocs.io/en/stable/>`__.
The documentation, including the reference and examples, is available at
`radontea.readthedocs.io <https://radontea.readthedocs.io/en/stable/>`__.


Installation
------------
The package can be installed from the Python package index.

::
The package can be installed from the Python package index::

pip install radontea


Testing
-------
Some functionalities of the module are tested with

::
Some functionalities of the module are tested with::

python setup.py test
pip install pytest
pytest tests



.. |PyPI Version| image:: https://img.shields.io/pypi/v/radontea.svg
:target: https://pypi.python.org/pypi/radontea
.. |Tests Status| image:: https://img.shields.io/travis/RI-imaging/radontea.svg?label=tests
:target: https://travis-ci.com/RI-imaging/radontea
.. |Tests Status| image:: https://img.shields.io/github/workflow/status/RI-Imaging/radontea/Checks
:target: https://github.com/RI-Imaging/radontea/actions?query=workflow%3AChecks
.. |Coverage Status| image:: https://img.shields.io/codecov/c/github/RI-imaging/radontea/master.svg
:target: https://codecov.io/gh/RI-imaging/radontea
.. |Docs Status| image:: https://readthedocs.org/projects/radontea/badge/?version=latest
Expand Down

0 comments on commit 1a04d70

Please sign in to comment.