Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to actions #29

Merged
merged 2 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 101 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
name: CI

on:
push:
branches:
- 'main'
- '*.*'
- '!*backport*'
tags:
- 'v*'
- '!*dev*'
- '!*pre*'
- '!*post*'
pull_request:
# Allow manual runs through the web UI
workflow_dispatch:

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

jobs:
core:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main
with:
submodules: false
coverage: codecov
toxdeps: tox-pypi-filter
posargs: -n auto
envs: |
- linux: py311
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

test:
needs: [core]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main
with:
submodules: false
coverage: codecov
toxdeps: tox-pypi-filter
posargs: -n auto
envs: |
- windows: py310
- macos: py39
- linux:
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

docs:
needs: [core]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main
with:
default_python: '3.9'
submodules: false
pytest: false
toxdeps: tox-pypi-filter
cache-key: docs-${{ github.run_id }}
libraries: |
apt:
- graphviz
envs: |
- linux: build_docs

extra:
needs: [test]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main
with:
default_python: '3.9'
submodules: false
coverage: codecov
toxdeps: tox-pypi-filter
posargs: -n auto
envs: |
- linux: py39-oldestdeps
- linux: py311-devdeps
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

publish:
# Build wheels when pushing to any branch except main
# publish.yml will only publish if tagged ^v.*
if: |
(
github.event_name != 'pull_request' && (
github.ref_name != 'main' ||
github.event_name == 'workflow_dispatch'
)
) || (
github.event_name == 'pull_request' &&
contains(github.event.pull_request.labels.*.name, 'Run publish')
)
needs: [test]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@main
with:
python-version: "3.10"
test_extras: 'all,tests'
test_command: 'pytest -p no:warnings -m "not mpl_image_compare" --pyargs mpl_animators'
submodules: false
secrets:
pypi_token: ${{ secrets.pypi_token }}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Token will need to be added @Cadair

22 changes: 12 additions & 10 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
## v1.1.0 - 2022-08-10
# Changelog #

### What's Changed
## v1.1.0 - 2022-08-10 ##

#### Bug Fixes
### What's Changed ###

- Fix setting y limits when data is a dask array by @SolarDrew in https://github.com/sunpy/mpl-animators/pull/11
#### Bug Fixes ####

#### Other Changes
- Fix setting y limits when data is a dask array by SolarDrew in <https://github.com/sunpy/mpl-animators/pull/11>

- Add changelog config and bump minimum Python version to 3.8 by @Cadair in https://github.com/sunpy/mpl-animators/pull/12
#### Other Changes ####

### New Contributors
- Add changelog config and bump minimum Python version to 3.8 by Cadair in <https://github.com/sunpy/mpl-animators/pull/12>

- @SolarDrew made their first contribution in https://github.com/sunpy/mpl-animators/pull/11
#### New Contributors ####

**Full Changelog**: https://github.com/sunpy/mpl-animators/compare/v1.0.1...v1.1.0
- @SolarDrew made their first contribution in <https://github.com/sunpy/mpl-animators/pull/11>

## v1.0.0
**Full Changelog**: <https://github.com/sunpy/mpl-animators/compare/v1.0.1...v1.1.0>

## v1.0.0 ##

Initial release with code copied from `sunpy.visualisation.animators`.
87 changes: 0 additions & 87 deletions azure-pipelines.yml

This file was deleted.

2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ all =
astropy>=5.0.6,!=5.1.0
wcs =
astropy>=5.0.6,!=5.1.0
test =
tests =
pytest
pytest-cov
pytest-mpl
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ deps =
figure-!devdeps-!oldestdeps: astropy==5.3.4
figure-!devdeps-!oldestdeps: matplotlib==3.8.1
extras =
test
all
tests
setenv =
PYTEST_COMMAND = pytest -vvv -s -raR --pyargs mpl_animators --cov-report=xml --cov=mpl_animators --cov-config={toxinidir}/setup.cfg {toxinidir}/docs
allowlist_externals = /bin/bash
Expand All @@ -46,8 +46,8 @@ commands =
changedir = docs
description = invoke sphinx-build to build the HTML docs
extras =
docs
all
docs
commands =
pip freeze
sphinx-build -W -b html . _build/html {posargs}
Loading