Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HLA-1313: Added weekly CRON job and removed python 3.9 from github actions tests. #200

Merged
merged 8 commits into from
Aug 22, 2024
Merged
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
15 changes: 15 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!-- If this PR closes a JIRA ticket, make sure the title starts with the JIRA issue number,
for example HLA-1234: <Fix a bug> -->
Resolves [HLA-nnnn](https://jira.stsci.edu/browse/HLA-nnnn)

<!-- If this PR closes a GitHub issue, reference it here by its number -->
Closes #

<!-- describe the changes comprising this PR here -->
This PR addresses ...

**Checklist for maintainers**
- [ ] added entry in `CHANGELOG.rst` within the relevant release section
- [ ] updated or added relevant tests
- [ ] updated relevant documentation
- [ ] added relevant label(s)
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
python-version: '3.10'
toxenv: py310

- name: Python 3.9
- name: Python 3.11
runs-on: ubuntu-latest
python-version: 3.9
toxenv: py39
python-version: 3.11
toxenv: py311

- name: Python 3.12
runs-on: ubuntu-latest
Expand Down
76 changes: 76 additions & 0 deletions .github/workflows/weekly_cron.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: CI

on:
schedule:
# Weekly Monday 6AM build
- cron: "0 0 * * 1"

jobs:
tox:
name: ${{ matrix.name }}
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
include:
- name: Python 3.10
runs-on: ubuntu-latest
python-version: '3.10'
toxenv: py310

- name: Python 3.11
runs-on: ubuntu-latest
python-version: 3.11
toxenv: py312

- name: Python 3.12
runs-on: ubuntu-latest
python-version: 3.12
toxenv: py312

- name: Code style checks
runs-on: ubuntu-latest
python-version: 3.11
toxenv: style

- name: Python 3.11 with dev dependencies
runs-on: ubuntu-latest
python-version: 3.11
toxenv: dev
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install tox
run: |
python -m pip install --upgrade pip
pip install tox
- name: Run tox
run: tox -e ${{ matrix.toxenv }}

# Kept in a separate job because it needs extra system dependencies
# that can't be installed by tox.
build-docs:
name: Build documentation and check warnings
runs-on: ubuntu-latest
steps:
- name: Install system packages
run: |
sudo apt-get install graphviz texlive-latex-extra dvipng
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install tox
run: |
python -m pip install --upgrade pip
pip install tox
- name: Run tox
run: tox -e build-docs
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist= py311, py312, py310, style, dev
envlist= py310, py311, py312, style, dev

[testenv]

Expand Down
Loading