Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
16 changes: 0 additions & 16 deletions .circleci/config.yml

This file was deleted.

6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
72 changes: 56 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
- "!*pre*"
- "!*post*"
pull_request:
# Allow manual runs through the web UI
workflow_dispatch:
schedule:
# ┌───────── minute (0 - 59)
Expand All @@ -36,16 +37,15 @@ jobs:
- pandoc
- graphviz
envs: |
- linux: py312-sphinx8
- linux: py313-sphinx8
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

tests:
test:
needs: [core]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main
with:
submodules: false
coverage: codecov
libraries: |
brew:
- pandoc
Expand All @@ -57,16 +57,27 @@ jobs:
- pandoc
- graphviz
envs: |
- macos: py311-sphinx7
- windows: py310-sphinx7
- linux: py310-sphinx6
- macos: py312-sphinx8
- windows: py311-sphinx8
- linux: py310-sphinx8
- linux: py312-pydata-sphinx-theme
- linux: py312-devdeps
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- linux: py313-devdeps

extras:
needs: [tests]
extra_tests:
needs: [test]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main
with:
submodules: false
libraries: |
apt:
- pandoc
- graphviz
envs: |
- linux: py312-pydata-sphinx-theme
- linux: py313-devdeps

docs:
needs: [core]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main
with:
submodules: false
Expand All @@ -76,12 +87,23 @@ jobs:
- pandoc
- graphviz
envs: |
- linux: py312-docs
- linux: pydata-sphinx-theme-dev
- linux: py312-linkcheck
- linux: py313-docs
- linux: py313-linkcheck

sdist_verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- run: python -m pip install -U --user build
- run: python -m build . --sdist
- run: python -m pip install -U --user twine
- run: python -m twine check dist/*

conda:
needs: [tests]
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -92,7 +114,7 @@ jobs:
with:
activate-environment: ablog-test
environment-file: ablog-conda-test-env.yml
python-version: "3.12"
python-version: "3.13"
- name: Install ablog
shell: bash -el {0}
run: |
Expand All @@ -101,5 +123,23 @@ jobs:
shell: bash -el {0}
run: |
conda list
cd /tmp
pytest -vvv -r a --pyargs ablog
make tests

publish:
# Build wheels on PRs only when labelled. Releases will only be published if tagged ^v.*
# see https://github-actions-workflows.openastronomy.org/en/latest/publish.html#upload-to-pypi
if: |
github.event_name != 'pull_request' ||
(
github.event_name == 'pull_request' &&
contains(github.event.pull_request.labels.*.name, 'Run publish')
)
needs: [test, docs, sdist_verify]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@main
with:
python-version: "3.13"
submodules: false
secrets:
pypi_token: ${{ secrets.PYPI_TOKEN }}
26 changes: 0 additions & 26 deletions .github/workflows/pythonpublish.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -195,3 +195,4 @@ test/
pydata-sphinx-theme/
_build
demo/
src/ablog/_version.py
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ Warning

**This version is maintained with the aim to keep it working for SunPy Project website and thus new features or bugfixes are highly unlikely unless they directly impact the SunPy Project**

**We strongly encourage users and interested in parties in submitting patches to ``ablog``**
**We strongly encourage users and interested in parties in submitting patches to ablog**
3 changes: 3 additions & 0 deletions src/ablog/tests/test_parallel.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
from pathlib import Path
from subprocess import run
import sys
import pytest


@pytest.mark.xfail("win" in sys.platform, reason="Passes on Windows")
def test_not_safe_for_parallel_read(rootdir: Path, tmp_path: Path):
"""
Ablog is NOT safe for parallel read.
Expand Down