Skip to content

Commit

Permalink
Merge pull request #1083 from aphearin/ci_cron
Browse files Browse the repository at this point in the history
Require `numpy<2` and add `cron_tests.yml`
  • Loading branch information
aphearin authored Aug 27, 2024
2 parents e8e623f + 558ff04 commit b73e5a7
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 2 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/cron_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Cron Tests

on:
workflow_dispatch: null
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 }}
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
astropy
numpy
numpy<2
scipy
requests
beautifulsoup4
Expand Down
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ python_requires = >=3.9
setup_requires = setuptools_scm
install_requires =
astropy
numpy
numpy<2
scipy
requests
beautifulsoup4
cython
h5py

[options.entry_points]
console_scripts =
Expand Down

0 comments on commit b73e5a7

Please sign in to comment.