Skip to content

Commit 664d218

Browse files
authored
Merge pull request #122 from braingram/ci
Fix CI and quantity tag bugs
2 parents bcb95d1 + 3f2b489 commit 664d218

File tree

73 files changed

+301
-84
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+301
-84
lines changed

.github/dependabot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: 2
2+
updates:
3+
4+
# Maintain dependencies for GitHub Actions (main)
5+
- package-ecosystem: "github-actions"
6+
directory: "/"
7+
target-branch: "main"
8+
schedule:
9+
interval: "weekly"
10+
11+
# Maintain dependencies for pip (main)
12+
- package-ecosystem: "pip"
13+
directory: "/"
14+
target-branch: "main"
15+
schedule:
16+
interval: "weekly"

.github/workflows/changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout code
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v4
1414
with:
1515
fetch-depth: 0
1616
submodules: true

.github/workflows/ci.yml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,14 @@ jobs:
1818
name: ${{ matrix.name }}
1919
runs-on: ${{ matrix.os }}
2020
strategy:
21+
fail-fast: false
2122
matrix:
2223
include:
24+
- name: Python 3.13 Schema validation tests
25+
python-version: '3.13'
26+
os: ubuntu-latest
27+
toxenv: py313
28+
2329
- name: Python 3.12 Schema validation tests
2430
python-version: '3.12'
2531
os: ubuntu-latest
@@ -28,7 +34,7 @@ jobs:
2834
- name: Python 3.11 Schema validation tests
2935
python-version: '3.11'
3036
os: ubuntu-latest
31-
toxenv: py310
37+
toxenv: py311
3238

3339
- name: Python 3.10 Schema validation tests
3440
python-version: '3.10'
@@ -51,22 +57,22 @@ jobs:
5157
toxenv: codestyle
5258

5359
- name: macOS
54-
python-version: 3.11
60+
python-version: 3.13
5561
os: macos-latest
56-
toxenv: py311
62+
toxenv: py312
5763

5864
- name: Windows
59-
python-version: 3.11
65+
python-version: 3.13
6066
os: windows-latest
61-
toxenv: py311
67+
toxenv: py313
6268

6369
steps:
6470
- name: Checkout code
65-
uses: actions/checkout@v2
71+
uses: actions/checkout@v4
6672
with:
6773
fetch-depth: 0
6874
- name: Set up Python ${{ matrix.python-version }}
69-
uses: actions/setup-python@v2
75+
uses: actions/setup-python@v5
7076
with:
7177
python-version: ${{ matrix.python-version }}
7278
- name: Install tox
@@ -81,20 +87,20 @@ jobs:
8187
runs-on: ubuntu-latest
8288
steps:
8389
- name: Checkout asdf-transform-schemas
84-
uses: actions/checkout@v2
90+
uses: actions/checkout@v4
8591
with:
8692
fetch-depth: 0
8793
path: asdf-transform-schemas
8894
- name: Checkout asdf-astropy dev
89-
uses: actions/checkout@v2
95+
uses: actions/checkout@v4
9096
with:
9197
fetch-depth: 0
9298
repository: astropy/asdf-astropy
9399
path: asdf-astropy
94-
- name: Set up Python 3.11
95-
uses: actions/setup-python@v2
100+
- name: Set up Python 3.13
101+
uses: actions/setup-python@v5
96102
with:
97-
python-version: 3.11
103+
python-version: 3.13
98104
- name: Install asdf-transform-schemas
99105
run: cd asdf-transform-schemas && pip install .
100106
- name: Install asdf-astropy

.github/workflows/downstream.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,21 +70,21 @@ jobs:
7070
test_command: pytest
7171
steps:
7272
- name: Checkout asdf-transform-schemas
73-
uses: actions/checkout@v2
73+
uses: actions/checkout@v4
7474
with:
7575
fetch-depth: 0
7676
submodules: true
7777
path: asdf-transform-schemas
7878
- name: Checkout ${{ matrix.package_name }}
79-
uses: actions/checkout@v2
79+
uses: actions/checkout@v4
8080
with:
8181
fetch-depth: 0
8282
repository: ${{ matrix.repository }}
8383
path: target
84-
- name: Set up Python 3.11
85-
uses: actions/setup-python@v2
84+
- name: Set up Python 3.13
85+
uses: actions/setup-python@v5
8686
with:
87-
python-version: 3.11
87+
python-version: 3.13
8888
- name: Install asdf-transform-schemas
8989
run: cd asdf-transform-schemas && pip install .
9090
- name: Install remaining ${{ matrix.package_name }} dependencies

docs/_static/custom.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ div.highlight-python:active {
4747
.announcement-content a {
4848
padding-right: 1em;
4949
}
50-
50+
5151
.announcement-content a:hover {
5252
color: fuchsia;
5353
}

docs/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
html_theme_options = {
140140
"light_logo": "images/logo-light-mode.png",
141141
"dark_logo": "images/logo-dark-mode.png",
142-
"announcement": topbanner,
142+
"announcement": topbanner,
143143
}
144144

145145

@@ -198,5 +198,6 @@
198198
# This is the prefix common to all schema IDs in this repository
199199
asdf_schema_standard_prefix = "schemas"
200200

201+
201202
def setup(app):
202203
app.add_css_file("custom.css")

pyproject.toml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,11 @@ name = 'asdf_transform_schemas'
33
description = 'ASDF schemas for transforms'
44
readme = 'README.md'
55
requires-python = '>=3.9'
6-
license = { file = 'LICENSE' }
6+
license-files = ['LICENSE']
77
authors = [{ name = 'The ASDF Developers', email = 'help@stsci.edu' }]
88
classifiers = [
99
'Programming Language :: Python',
1010
'Programming Language :: Python :: 3',
11-
'Programming Language :: Python :: 3.9',
12-
'Programming Language :: Python :: 3.10',
13-
'Programming Language :: Python :: 3.11',
14-
'Programming Language :: Python :: 3.12',
1511
'Development Status :: 5 - Production/Stable',
1612
]
1713
dependencies = [
@@ -48,7 +44,7 @@ test = [
4844

4945
[build-system]
5046
requires = [
51-
"setuptools >=42",
47+
"setuptools >77",
5248
"setuptools_scm[toml] >=3.4",
5349
"wheel",
5450
]

resources/stsci.edu/schemas/affine-1.5.0.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ allOf:
2020
anyOf:
2121
- tag: "tag:stsci.edu:asdf/core/ndarray-1.*"
2222
- tag: "tag:astropy.org:astropy/units/quantity-1.*"
23+
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
2324
- type: array
2425
items:
2526
type: array
@@ -36,6 +37,7 @@ allOf:
3637
anyOf:
3738
- tag: "tag:stsci.edu:asdf/core/ndarray-1.*"
3839
- tag: "tag:astropy.org:astropy/units/quantity-1.*"
40+
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
3941
- type: array
4042
items:
4143
type: number

resources/stsci.edu/schemas/airy-1.4.0.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ allOf:
1919
theta_b:
2020
anyOf:
2121
- tag: "tag:astropy.org:astropy/units/quantity-1.*"
22+
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
2223
- type: number
2324
description: |
2425
The latitude $\theta_b$ at which to minimize the error, in

resources/stsci.edu/schemas/airy_disk2d-1.2.0.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,25 @@ allOf:
2121
amplitude:
2222
anyOf:
2323
- tag: "tag:astropy.org:astropy/units/quantity-1.*"
24+
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
2425
- type: number
2526
description: Amplitude of the Airy function.
2627
x_0:
2728
anyOf:
2829
- tag: "tag:astropy.org:astropy/units/quantity-1.*"
30+
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
2931
- type: number
3032
description: x position of the maximum of the Airy function.
3133
y_0:
3234
anyOf:
3335
- tag: "tag:astropy.org:astropy/units/quantity-1.*"
36+
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
3437
- type: number
3538
description: y position of the maximum of the Airy function.
3639
radius:
3740
anyOf:
3841
- tag: "tag:astropy.org:astropy/units/quantity-1.*"
42+
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
3943
- type: number
4044
description: The radius of the Airy disk (radius of the first zero).
4145

0 commit comments

Comments
 (0)