Skip to content

Commit 0a25d13

Browse files
test with astropy 6
1 parent 65a24a1 commit 0a25d13

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

.github/workflows/python-package-conda.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,36 @@ jobs:
3333
pytest pystrometry/tests
3434
pytest pystrometry/utils/tests
3535
36+
build-linux-python-3p10-astropy:
37+
runs-on: ubuntu-latest
38+
strategy:
39+
max-parallel: 5
40+
41+
steps:
42+
- uses: actions/checkout@v4
43+
- name: Set up Python 3.10
44+
uses: actions/setup-python@v3
45+
with:
46+
python-version: '3.10'
47+
- name: Add conda to system path
48+
run: |
49+
echo $CONDA/bin >> $GITHUB_PATH
50+
- name: Install dependencies
51+
run: |
52+
conda env update --file environment-3.10-astropy.yml --name base
53+
- name: Lint with flake8
54+
run: |
55+
conda install flake8
56+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
57+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
58+
continue-on-error: true
59+
- name: Test with pytest
60+
run: |
61+
conda config --set solver classic
62+
conda install pytest
63+
pytest pystrometry/tests
64+
pytest pystrometry/utils/tests
65+
3666
build-linux-python-3p10-pinned:
3767
runs-on: ubuntu-latest
3868
strategy:

environment-3.10-astropy.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: pystrometry-environment-3p10-astropy
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
- python == 3.10
6+
- numpy
7+
- pip
8+
- kepmodel
9+
- pandas
10+
- pyarrow
11+
- matplotlib
12+
- astroquery
13+
- astropy == 6.0
14+
- sympy
15+
- scipy
16+
- uncertainties
17+
- pip:
18+
- linearfit

0 commit comments

Comments
 (0)