Skip to content

Commit

Permalink
Release branch instead of main for 0.11 (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
nabobalis authored May 2, 2024
1 parent 6675e93 commit c6bca84
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 43 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ version: 2
jobs:
twine-check:
docker:
- image: circleci/python:3.8
- image: cimg/python:3.12
steps:
- checkout
- run: python setup.py sdist
- run: python -m pip install -U --user --force-reinstall twine
- 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/*

workflows:
version: 2
twine-check:
Expand Down
35 changes: 31 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

test:
tests:
needs: [core]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main
with:
Expand All @@ -64,17 +64,45 @@ jobs:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

docs:
needs: [test]
needs: [core]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main
with:
default_python: '3.9'
submodules: false
pytest: false
libraries: |
apt:
- pandoc
- graphviz
envs: |
- linux: py312-docs
conda:
needs: [core]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: ablog-test
environment-file: ablog-conda-test-env.yml
python-version: "3.12"
- name: Install ablog
shell: bash -el {0}
run: |
pip install --no-deps --no-build-isolation .
- name: Run test
shell: bash -el {0}
run: |
conda list
pytest -vvv -r a --pyargs ablog
make tests
extras:
needs: [test]
needs: [tests]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main
with:
default_python: '3.9'
Expand All @@ -86,6 +114,5 @@ jobs:
- graphviz
envs: |
- linux: py312-sphinxdev
- linux: py312-conda
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repos:
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 24.4.0
rev: 24.4.2
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand All @@ -26,7 +26,7 @@ repos:
- id: check-yaml
- id: debug-statements
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.3.7'
rev: 'v0.4.2'
hooks:
- id: ruff
args: ['--fix']
Expand Down
22 changes: 22 additions & 0 deletions ablog-conda-test-env.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
channels:
- conda-forge

dependencies:
- alabaster
- docutils
- feedgen
- graphviz
- invoke
- make
- myst-parser
- nbsphinx
- packaging
- pandoc
- pip
- pytest
- python-dateutil
- setuptools
- setuptools-scm
- sphinx
- sphinx-automodapi
- watchdog
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ docs =
sphinx-automodapi
tests =
pytest
defusedxml>=0.8.0rc2

[options.entry_points]
console_scripts =
Expand Down
35 changes: 2 additions & 33 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ envlist =

[testenv]
allowlist_externals =
conda
make
git
deps =
Expand All @@ -17,8 +16,8 @@ commands =
sphinx6: pip install -U "sphinx>=6.0,<7.0"
sphinx7: pip install -U "sphinx>=7.0,<8.0"
sphinx8: pip install -U "sphinx>=8.0,<9.0"
sphinxdev: pip install -U "git+https://repo.or.cz/docutils.git#egg=docutils&subdirectory=docutils"
sphinxdev: pip install -U "git+https://github.com/sphinx-doc/sphinx"
sphinxdev: pip install -U git+https://github.com/docutils/docutils.git
sphinxdev: pip install -U git+https://github.com/sphinx-doc/sphinx
pip freeze --all --no-input
pytest -vvv -r a --pyargs ablog
make tests
Expand Down Expand Up @@ -48,33 +47,3 @@ changedir = docs
description = Invoke sphinx-build to check linkcheck works
commands =
sphinx-build --color -W --keep-going -b linkcheck . _build/html {posargs}

# Requires tox-conda
[testenv:py{39,310,311}-conda]
extras =
deps =
conda_deps =
alabaster
docutils
feedgen
graphviz
invoke
make
myst-parser
nbsphinx
packaging
pandoc
pip
pytest
python-dateutil
setuptools
setuptools-scm
sphinx
sphinx-automodapi
watchdog
conda_channels = conda-forge
install_command = pip install --no-deps --no-build-isolation {opts} {packages}
commands =
conda list
pytest -vvv -r a --pyargs ablog
make tests

0 comments on commit c6bca84

Please sign in to comment.