Skip to content

Commit e18a002

Browse files
authored
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
1 parent cc88c31 commit e18a002

File tree

6 files changed

+70
-22
lines changed

6 files changed

+70
-22
lines changed

.github/workflows/ci_workflows.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,21 @@ on:
88
# * is a special character in YAML so you have to quote this string
99
- cron: '0 5 * * 5'
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
permissions:
16+
contents: read
17+
1118
jobs:
1219
pep8:
1320
runs-on: ubuntu-latest
1421
steps:
1522
- name: Checkout code
16-
uses: actions/checkout@v2
23+
uses: actions/checkout@v3
1724
- name: Set up Python
18-
uses: actions/setup-python@v2
25+
uses: actions/setup-python@v4
1926
with:
2027
python-version: '3.x'
2128
- name: Lint with flake8
@@ -31,26 +38,26 @@ jobs:
3138
os: [windows-latest, macos-latest, ubuntu-latest]
3239
steps:
3340
- name: Checkout code
34-
uses: actions/checkout@v2
41+
uses: actions/checkout@v3
3542
- name: Set up Python
36-
uses: actions/setup-python@v2
43+
uses: actions/setup-python@v4
3744
with:
38-
python-version: '3.8'
45+
python-version: '3.9'
3946
- name: Install and build
4047
run: python -m pip install tox --upgrade
4148
- name: Run tests
42-
run: tox -e test
49+
run: tox -e py39-test
4350

4451
devtests:
4552
runs-on: ubuntu-latest
4653
steps:
4754
- name: Checkout code
48-
uses: actions/checkout@v2
55+
uses: actions/checkout@v3
4956
- name: Set up Python
50-
uses: actions/setup-python@v2
57+
uses: actions/setup-python@v4
5158
with:
52-
python-version: '3.9'
59+
python-version: '3.11'
5360
- name: Install and build
5461
run: python -m pip install tox --upgrade
5562
- name: Run tests
56-
run: tox -e test-devdeps
63+
run: tox -e py311-test-devdeps
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: rc_testing
2+
3+
on:
4+
workflow_dispatch:
5+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
cancel-in-progress: true
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
tests:
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
fail-fast: true
18+
matrix:
19+
os: [windows-latest, macos-latest, ubuntu-latest]
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v3
23+
- name: Set up Python
24+
uses: actions/setup-python@v4
25+
with:
26+
python-version: '3.10'
27+
- name: Install and build
28+
run: python -m pip install tox --upgrade
29+
- name: Run tests
30+
run: tox -e py310-test-predeps

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
if: github.repository == 'astropy/astrowidgets'
1111

1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v3
1414
with:
1515
fetch-depth: 0
16-
- uses: actions/setup-python@v2
16+
- uses: actions/setup-python@v4
1717
with:
1818
python-version: 3.8
1919

docs/install.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The following dependencies are needed *in the kernel of execution*
3939
to use ``astrowidgets`` in either Jupyter Lab or Notebook. They should be installed
4040
automatically when you install astrowidgets:
4141

42-
* ``python>=3.6``
42+
* ``python>=3.8``
4343
* ``numpy``
4444
* ``astropy``
4545
* ``ipywidgets>=7.5``
@@ -48,7 +48,7 @@ automatically when you install astrowidgets:
4848
* ``pillow``
4949
* ``freetype``
5050
* ``aggdraw``
51-
* ``jupyterlab>=1``
51+
* ``jupyterlab>=3``
5252
* ``nodejs``
5353
* ``opencv`` (optional, not installed by default)
5454

setup.cfg

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,15 @@ astropy_header = true
88
xfail_strict = true
99
filterwarnings =
1010
error
11-
ignore:numpy.ufunc size changed:RuntimeWarning
12-
ignore:numpy.ndarray size changed:RuntimeWarning
13-
ignore::DeprecationWarning:ginga
11+
ignore:numpy\.ufunc size changed:RuntimeWarning
12+
ignore:numpy\.ndarray size changed:RuntimeWarning
13+
ignore:zmq\.eventloop\.ioloop is deprecated in pyzmq 17:DeprecationWarning
14+
ignore:Widget.* is deprecated:DeprecationWarning
1415
ignore:Marker set named:UserWarning
16+
# https://github.com/ejeschke/ginga/issues/1033
17+
ignore:There is no current event loop:DeprecationWarning
18+
# https://github.com/ejeschke/ginga/issues/1034
19+
ignore:SelectableGroups dict interface is deprecated:DeprecationWarning
1520

1621
[flake8]
1722
# E501: line too long
@@ -40,9 +45,9 @@ install_requires =
4045
pillow
4146
ipywidgets>=7.5
4247
ipyevents>=0.6.3
43-
jupyterlab>=1
48+
jupyterlab>=3
4449
aggdraw
45-
python_requires >=3.6
50+
python_requires >=3.8
4651

4752
[options.extras_require]
4853
test =

tox.ini

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,29 @@
11
[tox]
22
envlist =
3-
test{,-devdeps}
3+
py{38,39,310,311}-test{,-devdeps,-predeps}
44
requires =
55
setuptools >= 30.3.0
66
pip >= 19.3.1
7-
setuptools_scm
8-
isolated_build = true
97

108
[testenv]
119
setenv =
1210
MPLBACKEND=agg
1311
JUPYTER_PLATFORM_DIRS=1
12+
1413
extras = test
14+
1515
changedir =
1616
test: .tmp/{envname}
17+
1718
deps =
1819
devdeps: git+https://github.com/astropy/astropy.git#egg=astropy
1920
devdeps: git+https://github.com/ejeschke/ginga.git#egg=ginga
21+
2022
commands =
2123
jupyter --paths
2224
pip freeze
2325
pytest --pyargs astrowidgets {toxinidir}/docs {posargs}
26+
27+
pip_pre =
28+
predeps: true
29+
!predeps: false

0 commit comments

Comments
 (0)