Skip to content

Commit 5d9843b

Browse files
committed
add initial workflows config
1 parent f1f23fa commit 5d9843b

1 file changed

Lines changed: 56 additions & 0 deletions

File tree

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Workflow is based on the Astropy GitHub actions workflow, ci_workflows.yml
2+
name: CI
3+
4+
on:
5+
push:
6+
branches:
7+
- '*'
8+
tags:
9+
- '*'
10+
pull_request:
11+
12+
13+
# 2025-01-07
14+
# NERSC has Python 3.10, Numpy 1.22.4, Scipy 1.8.1, matplotlib 3.8.4, astropy 6.0.1, healpy 1.16.6, PyYAML 6.0.1
15+
# PyPI has Python 3.13, Numpy 2.2.1, Scipy 1.15.0, matplotlib 3.10.0, astropy 7.0.0, healpy 1.18.0, PyYAML 6.0.2
16+
# Numpy 1.26.4 was the last pre-2.0 Numpy.
17+
#
18+
jobs:
19+
tests:
20+
name: Unit tests
21+
runs-on: ${{ matrix.os }}
22+
strategy:
23+
fail-fast: false # reset to true after Astropy 7 issues are resolved.
24+
matrix:
25+
include:
26+
# Stable, yet close to bleeding-edge.
27+
# - os: ubuntu-latest
28+
# python-version: '3.13'
29+
# numpy-version: '<3.0'
30+
# - os: ubuntu-latest
31+
# python-version: '3.12'
32+
# numpy-version: '<2.2'
33+
# - os: ubuntu-latest
34+
# python-version: '3.11'
35+
# numpy-version: '<2.1'
36+
# Similar to NERSC but more recent NumPy.
37+
- os: ubuntu-latest
38+
python-version: '3.10'
39+
numpy-version: '<2.0'
40+
41+
steps:
42+
- name: Checkout code
43+
uses: actions/checkout@v5
44+
- name: Set up Python ${{ matrix.python-version }}
45+
uses: actions/setup-python@v6
46+
with:
47+
python-version: ${{ matrix.python-version }}
48+
- name: Install Python dependencies
49+
run: |
50+
python -m pip install --upgrade pip setuptools wheel
51+
python -m pip install --upgrade --upgrade-strategy only-if-needed "numpy${{ matrix.numpy-version }}"
52+
python -m pip install desiutil fitsio
53+
python -m pip install --editable .
54+
- name: Run the test
55+
run: pytest
56+

0 commit comments

Comments
 (0)