Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: ci

on:
push:
pull_request:

jobs:
tests:
runs-on: ubuntu-latest
timeout-minutes: 120
strategy:
fail-fast: false
matrix:
py-version:
- '3.11' # Oldest supported
- '3.14' # Latest stable
name: Python ${{ matrix.py-version }}
steps:
- name: Checkout
uses: actions/checkout@v6

- name: Use Python ${{ matrix.py-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.py-version }}
architecture: x64

- name: Install SCIMES
run: |
pip install -r pip-requirements
pip install .

- name: Run tests
run: |
# use pytest -vv -x for debugging
pytest
1 change: 1 addition & 0 deletions pip-requirements
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ astropy>=1.0.2
matplotlib>=1.4.0
astrodendro>=0.1.0
scikit-learn>=0.15.2
pytest
5 changes: 0 additions & 5 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ all_files = 1
upload-dir = docs/_build/html
show-response = 1

[pytest]
minversion = 2.2
norecursedirs = build docs/_build
doctest_plus = enabled

[ah_bootstrap]
auto_use = True

Expand Down
7 changes: 7 additions & 0 deletions tests/dummy_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import pytest

def test_dummy(): # pytest automatically calls functions with name starting with test
assert True

def test_dummy_failing():
assert False