Skip to content

Commit

Permalink
Merge pull request #1210 from WilliamJamieson/feature/unit
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamJamieson authored Oct 13, 2022
2 parents 3b019c7 + 52201fb commit 96e7f0e
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 13 deletions.
46 changes: 33 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
coverage: codecov

test:
needs: [core, asdf-standard]
needs: [core, asdf-schemas]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
with:
cache-path: ~/.cache/pip
Expand All @@ -61,7 +61,7 @@ jobs:
- windows: py39
dev:
needs: [core, asdf-standard]
needs: [core, asdf-schemas]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
with:
cache-path: ~/.cache/pip
Expand All @@ -78,7 +78,7 @@ jobs:
python-version: 3.11.0-rc.2
compatibility:
needs: [core, asdf-standard]
needs: [core, asdf-schemas]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
with:
cache-path: ~/.cache/pip
Expand Down Expand Up @@ -106,31 +106,51 @@ jobs:
- linux: prerelease
- linux: packaged
asdf-standard:
name: Run asdf-standard tests
asdf-schemas:
name: ${{ matrix.package_name }}@${{ matrix.ref }} unit tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- package_name: asdf-standard
repository: asdf-format/asdf-standard
ref: master
install_command: pip install -e .[test]
test_command: pytest
- package_name: asdf-transform-schemas
repository: asdf-format/asdf-transform-schemas
ref: master
install_command: pip install -e .[test]
test_command: pytest
- package_name: asdf-unit-schemas
repository: asdf-format/asdf-unit-schemas
ref: main
install_command: pip install -e .[test]
test_command: pytest
steps:
- name: Checkout asdf
uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: true
path: asdf
- name: Checkout asdf-standard
- name: Checkout ${{ matrix.package_name }}
uses: actions/checkout@v2
with:
fetch-depth: 0
repository: asdf-format/asdf-standard
ref: master
path: asdf-standard
repository: ${{ matrix.repository }}
ref: ${{ matrix.ref }}
path: target
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install asdf
run: cd asdf && pip install .
- name: Install asdf-standard
run: cd asdf-standard && pip install -e .[test]
- name: Install remaining ${{ matrix.package_name }} dependencies
run: cd target && ${{ matrix.install_command }}
- name: Pip Freeze
run: pip freeze
- name: Run asdf-standard tests
run: cd asdf-standard && pytest
- name: Run ${{ matrix.package_name}} tests
run: cd target && ${{ matrix.test_command }}
5 changes: 5 additions & 0 deletions .github/workflows/downstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ jobs:
ref: main
install_command: pip install -e .[test]
test_command: pytest
- package_name: asdf-unit-schemas
repository: asdf-format/asdf-unit-schemas
ref: main
install_command: pip install -e .[test]
test_command: pytest
- package_name: asdf-coordinates-schemas
repository: asdf-format/asdf-coordinates-schemas
ref: main
Expand Down
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- Unpin ``jsonschema`` version and fix ``jsonschema`` deprecation warnings. [#1185]
- Replace ``pkg_resources`` with ``importlib.metadata``. [#1199]
- Fix default validation for jsonschema 4.10+ [#1203]
- Add ``asdf-unit-schemas`` as a dependency, for backwards compatibility. [#1210]

2.13.0 (2022-08-19)
-------------------
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ classifiers = [
dependencies = [
'asdf-standard >=1.0.1',
'asdf-transform-schemas >=0.2.2',
'asdf-unit-schemas >= 0.1.0',
'importlib_resources >=3; python_version <"3.9"',
'importlib-metadata >=3; python_version <"3.10"',
'jmespath >=0.6.2',
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ git+https://github.com/astropy/asdf-astropy
git+https://github.com/asdf-format/asdf-coordinates-schemas
git+https://github.com/asdf-format/asdf-standard
git+https://github.com/asdf-format/asdf-transform-schemas
git+https://github.com/asdf-format/asdf-unit-schemas.git
git+https://github.com/asdf-format/asdf-wcs-schemas
git+https://github.com/astropy/astropy
git+https://github.com/spacetelescope/gwcs
Expand Down

0 comments on commit 96e7f0e

Please sign in to comment.