From 222a0b0fb057dc10e186fef701cddef33c327eb4 Mon Sep 17 00:00:00 2001 From: Andrew Hearin Date: Wed, 14 Aug 2024 08:02:44 -0500 Subject: [PATCH 1/8] Add new cron workflow --- .github/workflows/cron_tests.yml | 59 ++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .github/workflows/cron_tests.yml diff --git a/.github/workflows/cron_tests.yml b/.github/workflows/cron_tests.yml new file mode 100644 index 000000000..255b4187b --- /dev/null +++ b/.github/workflows/cron_tests.yml @@ -0,0 +1,59 @@ +name: CI Tests + +on: + push: + branches: + - master + # tags: # run CI if specific tags are pushed + pull_request: + branches: + - master + schedule: + # Runs "First of every month at 3:15am Central" + - cron: '15 8 1 * *' + +jobs: + # Github Actions supports ubuntu, windows, and macos virtual environments: + # https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners + ci_tests: + name: ${{ matrix.name }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + include: + - name: Ubuntu - Python 3.9 with all optional dependencies + os: ubuntu-latest + python: 3.9 + toxenv: 'py39-test-alldeps' + + - name: MacOs - Python 3.9 with all optional dependencies + os: macos-latest + python: 3.9 + toxenv: 'py39-test-alldeps' + + - name: Ubuntu - Python 3.12 with all optional dependencies + os: ubuntu-latest + python: 3.12 + toxenv: 'py312-test-alldeps' + + - name: MacOs - Python 3.12 with all optional dependencies + os: macos-latest + python: 3.12 + toxenv: 'py312-test-alldeps' + + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Set up python ${{ matrix.python }} on ${{ matrix.os }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python }} + - name: Install base dependencies + run: | + python -m pip install --upgrade pip + python -m pip install tox codecov + - name: Test with tox + run: | + tox -e ${{ matrix.toxenv }} From 09f3012f2f15ca15fe13d25554ff4ef46d7e21f7 Mon Sep 17 00:00:00 2001 From: Andrew Hearin Date: Wed, 14 Aug 2024 08:04:32 -0500 Subject: [PATCH 2/8] Rename cron workflow --- .github/workflows/cron_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cron_tests.yml b/.github/workflows/cron_tests.yml index 255b4187b..d1ab7b5dd 100644 --- a/.github/workflows/cron_tests.yml +++ b/.github/workflows/cron_tests.yml @@ -1,4 +1,4 @@ -name: CI Tests +name: Cron Tests on: push: From a5b0b59f47a508ab4398fc174aa81987124b6802 Mon Sep 17 00:00:00 2001 From: Andrew Hearin Date: Mon, 26 Aug 2024 16:14:20 -0500 Subject: [PATCH 3/8] change requirements to numpy<2 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index b71a7eead..362641ed1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ astropy -numpy +numpy<2 scipy requests beautifulsoup4 From d82cdc5c0e85ffe037684bcf2dac676ec9ef918f Mon Sep 17 00:00:00 2001 From: Andrew Hearin Date: Mon, 26 Aug 2024 16:23:49 -0500 Subject: [PATCH 4/8] Change oldest-supported-numpy to numpy<2 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b8d602eb0..9f7ee18a7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=42.0.0", "setuptools_scm", "wheel", - "oldest-supported-numpy", + "numpy<2", "cython==3.0.2", "extension-helpers==1.*"] From a78e136eb22bb3eafbfcdeac66a2860bcbbcbed0 Mon Sep 17 00:00:00 2001 From: Andrew Hearin Date: Tue, 27 Aug 2024 17:22:32 -0500 Subject: [PATCH 5/8] numpy<2 in setup.cfg --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 3b0ab9426..702df8e43 100644 --- a/setup.cfg +++ b/setup.cfg @@ -18,7 +18,7 @@ python_requires = >=3.9 setup_requires = setuptools_scm install_requires = astropy - numpy + numpy<2 scipy requests beautifulsoup4 From 3bf7bee55e175d4a4e6cf5c295e0323c15fa6b2d Mon Sep 17 00:00:00 2001 From: Andrew Hearin Date: Tue, 27 Aug 2024 17:41:33 -0500 Subject: [PATCH 6/8] Remove PR execution of cron_tests.yml --- .github/workflows/cron_tests.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/cron_tests.yml b/.github/workflows/cron_tests.yml index d1ab7b5dd..e897d7cb6 100644 --- a/.github/workflows/cron_tests.yml +++ b/.github/workflows/cron_tests.yml @@ -1,13 +1,7 @@ name: Cron Tests on: - push: - branches: - - master - # tags: # run CI if specific tags are pushed - pull_request: - branches: - - master + workflow_dispatch: null schedule: # Runs "First of every month at 3:15am Central" - cron: '15 8 1 * *' From 2ea3c27e305bb45d37f14319252249b1779a41d0 Mon Sep 17 00:00:00 2001 From: Andrew Hearin Date: Tue, 27 Aug 2024 17:44:59 -0500 Subject: [PATCH 7/8] Revert to oldest-supported-numpy within pyproject.toml --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9f7ee18a7..b8d602eb0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=42.0.0", "setuptools_scm", "wheel", - "numpy<2", + "oldest-supported-numpy", "cython==3.0.2", "extension-helpers==1.*"] From 558ff04a6ef5f97be126041fa64562d657733f33 Mon Sep 17 00:00:00 2001 From: Andrew Hearin Date: Tue, 27 Aug 2024 17:57:39 -0500 Subject: [PATCH 8/8] Add h5py to setup.cfg requirements --- setup.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.cfg b/setup.cfg index 702df8e43..3e46d7a1c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -23,6 +23,7 @@ install_requires = requests beautifulsoup4 cython + h5py [options.entry_points] console_scripts =