From 8a5345618357654a130ca25abf812714e95fdc68 Mon Sep 17 00:00:00 2001 From: Thomas Baumann <39156931+brownbaerchen@users.noreply.github.com> Date: Fri, 8 May 2026 12:21:52 +0200 Subject: [PATCH 1/2] Add dummy CI workflow --- .github/workflows/CI.yaml | 36 ++++++++++++++++++++++++++++++++++++ pip-requirements | 1 + setup.cfg | 5 ----- tests/dummy_test.py | 7 +++++++ 4 files changed, 44 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/CI.yaml create mode 100644 tests/dummy_test.py diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml new file mode 100644 index 0000000..ac65448 --- /dev/null +++ b/.github/workflows/CI.yaml @@ -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 + + - name: Use Python ${{ matrix.py-version }} + uses: actions/setup-python + 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 diff --git a/pip-requirements b/pip-requirements index a42b563..8483bb5 100644 --- a/pip-requirements +++ b/pip-requirements @@ -2,3 +2,4 @@ astropy>=1.0.2 matplotlib>=1.4.0 astrodendro>=0.1.0 scikit-learn>=0.15.2 +pytest diff --git a/setup.cfg b/setup.cfg index 10d7809..16ebe29 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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 diff --git a/tests/dummy_test.py b/tests/dummy_test.py new file mode 100644 index 0000000..a9cf961 --- /dev/null +++ b/tests/dummy_test.py @@ -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 From a27b039993942ae7b77925e3d40fa059a9f5f916 Mon Sep 17 00:00:00 2001 From: Thomas Baumann <39156931+brownbaerchen@users.noreply.github.com> Date: Fri, 8 May 2026 12:23:10 +0200 Subject: [PATCH 2/2] Fix version number --- .github/workflows/CI.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index ac65448..422ac28 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -17,10 +17,10 @@ jobs: name: Python ${{ matrix.py-version }} steps: - name: Checkout - uses: actions/checkout + uses: actions/checkout@v6 - name: Use Python ${{ matrix.py-version }} - uses: actions/setup-python + uses: actions/setup-python@v6 with: python-version: ${{ matrix.py-version }} architecture: x64