Skip to content

Commit 7ce0f2d

Browse files
authored
Fix CI. (#15)
1 parent 61c1345 commit 7ce0f2d

File tree

6 files changed

+26
-4
lines changed

6 files changed

+26
-4
lines changed

.github/workflows/continuous-integration-workflow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
21-
python-version: ['3.6', '3.7', '3.8']
21+
python-version: ['3.6', '3.7', '3.8', '3.9']
2222

2323
steps:
2424
- uses: actions/checkout@v2
2525
- uses: r-lib/actions/setup-tinytex@v1
2626
if: runner.os != 'Windows'
27-
- uses: goanpeca/setup-miniconda@v1
27+
- uses: conda-incubator/setup-miniconda@v2
2828
with:
2929
auto-update-conda: true
3030
python-version: ${{ matrix.python-version }}

.pre-commit-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,18 @@ repos:
99
exclude: meta.yaml
1010
- id: debug-statements
1111
- id: end-of-file-fixer
12+
- repo: https://github.com/pre-commit/pygrep-hooks
13+
rev: v1.7.0 # Use the ref you want to point at
14+
hooks:
15+
- id: python-check-blanket-noqa
16+
- id: python-check-mock-methods
17+
- id: python-no-eval
18+
- id: python-no-log-warn
19+
- id: python-use-type-annotations
20+
- id: rst-backticks
21+
- id: rst-directive-colons
22+
- id: rst-inline-touching-normal
23+
- id: text-unicode-replacement-char
1224
- repo: https://github.com/asottile/pyupgrade
1325
rev: v2.7.2
1426
hooks:

CHANGES.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ all releases are available on `Anaconda.org
77
<https://anaconda.org/pytask/pytask-latex>`_.
88

99

10+
0.0.9 - 2020-xx-xx
11+
------------------
12+
13+
- :gh:`13` fixes the CI.
14+
15+
1016
0.0.8 - 2020-10-29
1117
------------------
1218

environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ dependencies:
1616
- pytask-parallel >= 0.0.4
1717

1818
# Misc
19+
- black
1920
- bumpversion
2021
- jupyterlab
2122
- matplotlib

tests/test_collect.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,12 @@ def test_pytask_collect_task_teardown(
102102

103103
task = DummyClass()
104104
task.depends_on = {
105-
i: FilePathNode(n.split(".")[0], Path(n)) for i, n in enumerate(depends_on)
105+
i: FilePathNode(n.split(".")[0], Path(n), Path(n))
106+
for i, n in enumerate(depends_on)
106107
}
107108
task.produces = {
108-
i: FilePathNode(n.split(".")[0], Path(n)) for i, n in enumerate(produces)
109+
i: FilePathNode(n.split(".")[0], Path(n), Path(n))
110+
for i, n in enumerate(produces)
109111
}
110112
task.markers = [Mark("latex", (), {})]
111113
task.function = task_dummy

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ warn-symbols =
4545
addopts = --doctest-modules
4646
filterwarnings =
4747
ignore: the imp module is deprecated in favour of importlib
48+
ignore: Using or importing the ABCs from 'collections'
4849
junit_family = xunit2
4950
markers =
5051
wip: Tests that are work-in-progress.

0 commit comments

Comments
 (0)