-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TST: Fix workflows, add RC testing (#156)
* Attempt to upgrade workflows. Drop support for Python 3.7 and Python 3.8. Drop support for Lab 1 and Lab 2. * Add RC testing workflow * Ignore DeprecationWarning from ipywidgets * Fix warning message matching * Ignore ioloop DeprecationWarning from Ginga * And one more DeprecationWarning * Only run RC testing on demand
- Loading branch information
Showing
6 changed files
with
70 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: rc_testing | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
tests: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
os: [windows-latest, macos-latest, ubuntu-latest] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- name: Install and build | ||
run: python -m pip install tox --upgrade | ||
- name: Run tests | ||
run: tox -e py310-test-predeps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,29 @@ | ||
[tox] | ||
envlist = | ||
test{,-devdeps} | ||
py{38,39,310,311}-test{,-devdeps,-predeps} | ||
requires = | ||
setuptools >= 30.3.0 | ||
pip >= 19.3.1 | ||
setuptools_scm | ||
isolated_build = true | ||
|
||
[testenv] | ||
setenv = | ||
MPLBACKEND=agg | ||
JUPYTER_PLATFORM_DIRS=1 | ||
|
||
extras = test | ||
|
||
changedir = | ||
test: .tmp/{envname} | ||
|
||
deps = | ||
devdeps: git+https://github.com/astropy/astropy.git#egg=astropy | ||
devdeps: git+https://github.com/ejeschke/ginga.git#egg=ginga | ||
|
||
commands = | ||
jupyter --paths | ||
pip freeze | ||
pytest --pyargs astrowidgets {toxinidir}/docs {posargs} | ||
|
||
pip_pre = | ||
predeps: true | ||
!predeps: false |