Skip to content

Commit

Permalink
Merge pull request #12 from mirochaj/testing
Browse files Browse the repository at this point in the history
setup github actions for test suite
  • Loading branch information
mirochaj committed Sep 16, 2021
2 parents 58445c6 + e9daba9 commit 2241dfa
Show file tree
Hide file tree
Showing 49 changed files with 723 additions and 1,669 deletions.
8 changes: 5 additions & 3 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,17 @@ exclude_lines =
# Don't complain about missing debug-only code:
def __repr__
if self\.pf['debug']
if self\.pf['verbose']
if self\.pf['verbose']

# Don't worry about plotting routines
def Plot

# Don't complain if tests don't hit defensive assertion code:
raise ImportError
raise NotImplementedError
except ImportError
except NotImplementedError

# Don't complain if rank > 0 blocks aren't executed
if rank > 0:
if size > 1:
Expand All @@ -31,4 +34,3 @@ ignore_errors = True

[html]
directory = htmlcov

13 changes: 7 additions & 6 deletions .github/workflows/test_suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,18 @@ jobs:
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# 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: Lint with flake8
# run: |
# # stop the build if there are Python syntax errors or undefined names
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# # 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
run: |
python setup.py install
python remote.py minimal
echo "backend : Agg" > $HOME/matplotlibrc
export DISPLAY=:0
export MATPLOTLIBRC=$HOME
- name: Test with pytest
run: |
Expand Down
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
[![Documentation Status](https://readthedocs.org/projects/ares/badge/?version=latest)](http://ares.readthedocs.io/en/latest/?badge=latest) ![Tests](https://github.com/mirochaj/ares/actions/workflows/test_suite.yaml/badge.svg) [![codecov](https://codecov.io/gh/mirochaj/ares/branch/main/graph/badge.svg?token=18ZMZEUWPW)](https://codecov.io/gh/mirochaj/ares) [![Last Commit](https://img.shields.io/github/last-commit/mirochaj/ares)](https://img.shields.io/github/last-commit/mirochaj/ares)




# **ARES**
The Accelerated Reionization Era Simulations (ARES) code was designed to
rapidly generate models for the global 21-cm signal. It can also be used as a
Expand Down

0 comments on commit 2241dfa

Please sign in to comment.