Skip to content

Commit

Permalink
add ci with icetray docker (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
kjmeagher authored Dec 6, 2024
1 parent 97529c5 commit bb2f4c4
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 10 deletions.
31 changes: 23 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-22.04]
include:
- python-version: 3.12
os: macos-12
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -53,9 +50,27 @@ jobs:
with:
fail_ci_if_error: false
verbose: true
TestsIceTray:
runs-on: ubuntu-latest
container: icecube/icetray:icetray-prod-v1.11.1-ubuntu22.04-X64
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Install i3astropy
run: python3 -m pip install 'astropy>=6' .[test]
- name: Run Unit Tests
run: /usr/local/icetray/env-shell.sh python -m pytest --junit-xml=test-results-icetray.junit.xml
- name: Upload Test Results
uses: actions/upload-artifact@v4
if: always()
with:
if-no-files-found: error
name: test-results-icetray.junit.xml
path: test-results-icetray.junit.xml
publish-test-results:
name: "Publish Tests Results"
needs: Tests
needs: [Tests, TestsIceTray]
runs-on: ubuntu-latest
permissions:
checks: write
Expand All @@ -75,15 +90,15 @@ jobs:
files: "*.xml"
deduplicate_classes_by_file_name: true
Docs:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.13"
cache: pip
cache-dependency-path: pyproject.toml
- name: Install i3astropy
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ classifiers = [
'Topic :: Scientific/Engineering :: Astronomy',
'Topic :: Scientific/Engineering :: Physics'
]
dependencies = ["numpy", "astropy"]
dependencies = ["numpy", "astropy>=5"]
dynamic = ["version", "description"]
keywords = ["python", "science", "astronomy", "astrophysics", "astropy", "IceCube", "neutrino"]
license = {file = "LICENSES/BSD-2-Clause.txt"}
Expand All @@ -34,7 +34,7 @@ requires-python = "~=3.9"
dev = ["pre-commit"]
docs = ['mkdocs']
examples = ["matplotlib"]
test = ["pytest", "pytest-cov"]
test = ["pytest>=7", "pytest-cov>=6"]

[project.urls]
Collaboration = "https://icecube.wisc.edu"
Expand Down

0 comments on commit bb2f4c4

Please sign in to comment.