Skip to content

Commit

Permalink
TST: Add RC testing workflow
Browse files Browse the repository at this point in the history
and update existing

Ignore DeprecationWarning
from skimage and numpy 1.24
  • Loading branch information
pllim committed Dec 9, 2022
1 parent 60f8873 commit 7d7d99e
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/ci_workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

env:
jref: "https://ssb.stsci.edu/trds_open/jref"

Expand Down Expand Up @@ -44,7 +47,7 @@ jobs:
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Lint with flake8
Expand Down Expand Up @@ -72,9 +75,9 @@ jobs:
fetch-depth: 0
lfs: true
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: '3.8'
python-version: '3.9'
- name: Install and build
run: |
python -m pip install --upgrade pip setuptools wheel
Expand All @@ -93,9 +96,9 @@ jobs:
fetch-depth: 0
lfs: true
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.11'
- name: Install and build
run: |
python -m pip install --upgrade pip setuptools wheel
Expand All @@ -112,7 +115,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install and build
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
analyze:
name: Analyze
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/predeps_workflows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: rc-testing

on:
workflow_dispatch:
# REMOVE ME
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

env:
jref: "https://ssb.stsci.edu/trds_open/jref"

jobs:
rc_tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
lfs: true
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install and build
run: |
python -m pip install --upgrade pip wheel setuptools
python -m pip install numpy astropy --pre
pip install git+https://github.com/spacetelescope/ci_watson.git --upgrade --no-deps
python -m pip install -e .[test,all]
- name: Run tests
run: pytest --remote-data -v
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ filterwarnings =
ignore:unclosed file:ResourceWarning
ignore:distutils Version classes are deprecated:DeprecationWarning
ignore:Deprecation Warning.*timeout.*parameter no longer needed:UserWarning
# This is from skimage import
ignore:.*np\.bool8.*is a deprecated alias:DeprecationWarning

[flake8]
# Ignoring these for now:
Expand Down

0 comments on commit 7d7d99e

Please sign in to comment.