File tree 6 files changed +62
-43
lines changed
6 files changed +62
-43
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,13 @@ version: 2
2
2
jobs :
3
3
twine-check :
4
4
docker :
5
- - image : circleci /python:3.8
5
+ - image : cimg /python:3.12
6
6
steps :
7
7
- checkout
8
- - run : python setup.py sdist
9
- - run : python -m pip install -U --user --force-reinstall twine
8
+ - run : python -m pip install -U --user build
9
+ - run : python -m build . --sdist
10
+ - run : python -m pip install -U --user twine
10
11
- run : python -m twine check dist/*
11
-
12
12
workflows :
13
13
version : 2
14
14
twine-check :
Original file line number Diff line number Diff line change 40
40
secrets :
41
41
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
42
42
43
- test :
43
+ tests :
44
44
needs : [core]
45
45
uses : OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main
46
46
with :
@@ -64,17 +64,45 @@ jobs:
64
64
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
65
65
66
66
docs :
67
- needs : [test ]
67
+ needs : [core ]
68
68
uses : OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main
69
69
with :
70
70
default_python : ' 3.9'
71
71
submodules : false
72
72
pytest : false
73
+ libraries : |
74
+ apt:
75
+ - pandoc
76
+ - graphviz
73
77
envs : |
74
78
- linux: py312-docs
75
79
80
+ conda :
81
+ needs : [core]
82
+ runs-on : ubuntu-latest
83
+ steps :
84
+ - uses : actions/checkout@v4
85
+ with :
86
+ fetch-depth : 0
87
+ lfs : true
88
+ - uses : conda-incubator/setup-miniconda@v3
89
+ with :
90
+ activate-environment : ablog-test
91
+ environment-file : ablog-conda-test-env.yml
92
+ python-version : " 3.12"
93
+ - name : Install ablog
94
+ shell : bash -el {0}
95
+ run : |
96
+ pip install --no-deps --no-build-isolation .
97
+ - name : Run test
98
+ shell : bash -el {0}
99
+ run : |
100
+ conda list
101
+ pytest -vvv -r a --pyargs ablog
102
+ make tests
103
+
76
104
extras :
77
- needs : [test ]
105
+ needs : [tests ]
78
106
uses : OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main
79
107
with :
80
108
default_python : ' 3.9'
86
114
- graphviz
87
115
envs : |
88
116
- linux: py312-sphinxdev
89
- - linux: py312-conda
90
117
secrets :
91
118
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change 12
12
hooks :
13
13
- id : isort
14
14
- repo : https://github.com/psf/black
15
- rev : 24.4.0
15
+ rev : 24.4.2
16
16
hooks :
17
17
- id : black
18
18
- repo : https://github.com/pre-commit/pre-commit-hooks
26
26
- id : check-yaml
27
27
- id : debug-statements
28
28
- repo : https://github.com/astral-sh/ruff-pre-commit
29
- rev : ' v0.3.7 '
29
+ rev : ' v0.4.2 '
30
30
hooks :
31
31
- id : ruff
32
32
args : ['--fix']
Original file line number Diff line number Diff line change
1
+ channels :
2
+ - conda-forge
3
+
4
+ dependencies :
5
+ - alabaster
6
+ - docutils
7
+ - feedgen
8
+ - graphviz
9
+ - invoke
10
+ - make
11
+ - myst-parser
12
+ - nbsphinx
13
+ - packaging
14
+ - pandoc
15
+ - pip
16
+ - pytest
17
+ - python-dateutil
18
+ - setuptools
19
+ - setuptools-scm
20
+ - sphinx
21
+ - sphinx-automodapi
22
+ - watchdog
Original file line number Diff line number Diff line change 41
41
sphinx-automodapi
42
42
tests =
43
43
pytest
44
+ defusedxml>=0.8.0rc2
44
45
45
46
[options.entry_points]
46
47
console_scripts =
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ envlist =
4
4
5
5
[testenv]
6
6
allowlist_externals =
7
- conda
8
7
make
9
8
git
10
9
deps =
@@ -17,8 +16,8 @@ commands =
17
16
sphinx6: pip install -U " sphinx>=6.0,<7.0"
18
17
sphinx7: pip install -U " sphinx>=7.0,<8.0"
19
18
sphinx8: pip install -U " sphinx>=8.0,<9.0"
20
- sphinxdev: pip install -U " git+https://repo.or.cz /docutils.git#egg=docutils&subdirectory=docutils "
21
- sphinxdev: pip install -U " git+https://github.com/sphinx-doc/sphinx"
19
+ sphinxdev: pip install -U git+https://github.com /docutils/docutils .git
20
+ sphinxdev: pip install -U git+https://github.com/sphinx-doc/sphinx
22
21
pip freeze --all --no-input
23
22
pytest -vvv -r a --pyargs ablog
24
23
make tests
@@ -48,33 +47,3 @@ changedir = docs
48
47
description = Invoke sphinx-build to check linkcheck works
49
48
commands =
50
49
sphinx-build --color -W --keep-going -b linkcheck . _build/html {posargs}
51
-
52
- # Requires tox-conda
53
- [testenv:py{39,310,311}-conda]
54
- extras =
55
- deps =
56
- conda_deps =
57
- alabaster
58
- docutils
59
- feedgen
60
- graphviz
61
- invoke
62
- make
63
- myst-parser
64
- nbsphinx
65
- packaging
66
- pandoc
67
- pip
68
- pytest
69
- python-dateutil
70
- setuptools
71
- setuptools-scm
72
- sphinx
73
- sphinx-automodapi
74
- watchdog
75
- conda_channels = conda-forge
76
- install_command = pip install --no-deps --no-build-isolation {opts} {packages}
77
- commands =
78
- conda list
79
- pytest -vvv -r a --pyargs ablog
80
- make tests
You can’t perform that action at this time.
0 commit comments