-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from Johannes-Sahlmann/Johannes-Sahlmann-patch-1
Make package compatible with astropy >= 6.0 Add python-package-conda.yml for actions Add test pipelines
- Loading branch information
Showing
13 changed files
with
191 additions
and
157 deletions.
There are no files selected for viewing
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,91 @@ | ||
name: Python Package using Conda | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build-linux-python-3p10: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
max-parallel: 5 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.10' | ||
- name: Add conda to system path | ||
run: | | ||
echo $CONDA/bin >> $GITHUB_PATH | ||
- name: Install dependencies | ||
run: | | ||
conda env update --file environment-3.10.yml --name base | ||
- name: Lint with flake8 | ||
run: | | ||
conda install flake8 | ||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | ||
continue-on-error: true | ||
- name: Test with pytest | ||
run: | | ||
conda config --set solver classic | ||
conda install pytest | ||
pytest pystrometry/tests | ||
build-linux-python-3p10-pinned: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
max-parallel: 5 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.10' | ||
- name: Add conda to system path | ||
run: | | ||
echo $CONDA/bin >> $GITHUB_PATH | ||
- name: Install dependencies | ||
run: | | ||
conda env update --file environment-3.10-pinned.yml --name base | ||
- name: Lint with flake8 | ||
run: | | ||
conda install flake8 | ||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | ||
continue-on-error: true | ||
- name: Test with pytest | ||
run: | | ||
conda config --set solver classic | ||
conda install pytest | ||
pytest pystrometry/tests | ||
build-linux-python-3p9: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
max-parallel: 5 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.9' | ||
- name: Add conda to system path | ||
run: | | ||
echo $CONDA/bin >> $GITHUB_PATH | ||
- name: Install dependencies | ||
run: | | ||
conda env update --file environment-3.9.yml --name base | ||
- name: Lint with flake8 | ||
run: | | ||
conda install flake8 | ||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | ||
continue-on-error: true | ||
- name: Test with pytest | ||
run: | | ||
conda install pytest | ||
pytest pystrometry/tests | ||
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,17 @@ | ||
name: pystrometry-environment | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python == 3.10 | ||
- numpy == 1.24.3 | ||
- pip == 23.1.2 | ||
- kepmodel == 1.0.6 | ||
- pandas == 2.0.2 | ||
- matplotlib == 3.7.1 | ||
- astroquery == 0.4.6 | ||
- astropy == 5.0.6 | ||
- sympy | ||
- scipy | ||
- uncertainties | ||
- pip: | ||
- linearfit |
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,17 @@ | ||
name: pystrometry-environment-3p10 | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python == 3.10 | ||
- numpy | ||
- pip | ||
- kepmodel | ||
- pandas | ||
- matplotlib | ||
- astroquery | ||
- astropy | ||
- sympy | ||
- scipy | ||
- uncertainties | ||
- pip: | ||
- linearfit |
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,17 @@ | ||
name: pystrometry-environment | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python == 3.11 | ||
- numpy | ||
- pip | ||
- kepmodel | ||
- pandas | ||
- matplotlib | ||
- astroquery | ||
- astropy | ||
- sympy | ||
- scipy | ||
- uncertainties | ||
- pip: | ||
- linearfit |
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,17 @@ | ||
name: pystrometry-environment | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python == 3.9 | ||
- numpy == 1.24.3 | ||
- pip == 23.1.2 | ||
- kepmodel == 1.0.6 | ||
- pandas == 2.0.2 | ||
- matplotlib == 3.7.1 | ||
- astroquery == 0.4.6 | ||
- astropy == 5.0.6 | ||
- sympy | ||
- scipy | ||
- uncertainties | ||
- pip: | ||
- linearfit |
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,17 @@ | ||
name: pystrometry-environment | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python == 3.9 | ||
- numpy | ||
- pip | ||
- kepmodel | ||
- pandas | ||
- matplotlib | ||
- astroquery | ||
- astropy | ||
- sympy | ||
- scipy | ||
- uncertainties | ||
- pip: | ||
- linearfit |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
conda: | ||
file: .rtd-environment.yml | ||
file: .rtd-environment-3.9-pinned.yml | ||
|
||
python: | ||
setup_py_install: true |
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