Skip to content

Commit

Permalink
Merge branch 'main' into panoptes_update
Browse files Browse the repository at this point in the history
  • Loading branch information
pheuer committed Nov 7, 2024
2 parents 9e68c2f + a2b3520 commit c11ed66
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: CI

on:
push:
branches:
- main
pull_request:


jobs:

tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
timeout-minutes: 30

strategy:
fail-fast: false

matrix:
include:

- name: Tests Python 3.12 - Ubuntu
# Doctests are run only for most recent Python (see noxfile.py)
os: ubuntu-latest
python-version: '3.13'

- name: Tests, Python 3.12 - MacOS
os: macos-latest
python-version: '3.12'

- name: Python 3.12 - Windows
os: windows-latest
python-version: '3.12'


steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version}}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -r requirements.txt
- name: Test with pytest
run: |
pytest
6 changes: 6 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
fast_histogram
h5py >= 3.8.0
matplotlib >= 3.7.0
numpy >= 1.24.0
pint
setuptools >= 66.0.0

0 comments on commit c11ed66

Please sign in to comment.