Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
semaphoreP committed Oct 18, 2024
2 parents ecdbec7 + d393657 commit 0bdbe0d
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
41 changes: 41 additions & 0 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: CI Tests

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel
pip install flake8 pytest numpy
pip install orbitize
pip install -r requirements.txt
python setup.py develop
git lfs pull
- 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
- name: Test with pytest
run: |
pytest
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# whereistheplanet?
Prediciting the position of exoplanets. Web version is available at https://www.whereistheplanet.com/. Credit: Jason Wang, Matas Kulikauskas, and Sarah Blunt.

![Teseting Badge](https://github.com/semaphoreP/whereistheplanet/actions/workflows/ci-tests.yml/badge.svg) [![ASCL Reference](https://img.shields.io/badge/ascl-2101.003-blue.svg?colorB=262255)](https://ascl.net/2101.003)

## Install
Requires `orbitize!` (https://github.com/sblunt/orbitize/) and `git-lfs` to pull the posteriors. After you clone the repositroy and use `git lfs pull` to pull the posteriors, install using
Expand Down Expand Up @@ -28,4 +30,4 @@ whereistheplanet --list

If you used this for your research, please cite the [ASCL entry](https://ascl.net/2101.003) of it:

Wang, J. J., Kulikauskas, M., Blunt, S. 2021, Astrophysics Source Code Library, ascl:2101.003
Wang, J. J., Kulikauskas, M., Blunt, S. 2021, Astrophysics Source Code Library, ascl:2101.003

0 comments on commit 0bdbe0d

Please sign in to comment.