Skip to content

Commit 556e56b

Browse files
authored
Use mambaforge for CI. (#53)
1 parent f26af61 commit 556e56b

7 files changed

+17
-13
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
auto-update-conda: false
3939
python-version: ${{ matrix.python-version }}
4040
channels: conda-forge,nodefaults
41-
mamba-version: "*"
41+
miniforge-variant: Mambaforge
4242

4343
- name: Install core dependencies.
4444
shell: bash -l {0}

environment.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies:
1212

1313
# Package dependencies
1414
- pytask >= 0.3
15-
- pytask-parallel >= 0.1
15+
- pytask-parallel >= 0.3
1616
- latex-dependency-scanner >=0.1.1
1717
- pybaum >=0.1.1
1818

tests/test_execute.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,17 @@
44
from pathlib import Path
55

66
import pytest
7-
from conftest import needs_latexmk
8-
from conftest import skip_on_github_actions_with_win
9-
from conftest import TEST_RESOURCES
107
from pytask import cli
118
from pytask import ExitCode
129
from pytask import main
1310
from pytask import Mark
1411
from pytask import Task
1512
from pytask_latex.execute import pytask_execute_task_setup
1613

14+
from tests.conftest import needs_latexmk
15+
from tests.conftest import skip_on_github_actions_with_win
16+
from tests.conftest import TEST_RESOURCES
17+
1718

1819
@pytest.mark.unit()
1920
def test_pytask_execute_task_setup(monkeypatch):

tests/test_latex_dependency_scanner.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
import textwrap
44

55
import pytest
6-
from conftest import needs_latexmk
7-
from conftest import skip_on_github_actions_with_win
86
from pytask import ExitCode
97
from pytask import main
108

9+
from tests.conftest import needs_latexmk
10+
from tests.conftest import skip_on_github_actions_with_win
11+
1112

1213
@needs_latexmk
1314
@skip_on_github_actions_with_win

tests/test_parallel.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
import time
77

88
import pytest
9-
from conftest import needs_latexmk
10-
from conftest import skip_on_github_actions_with_win
119
from pytask import cli
1210
from pytask import ExitCode
1311

12+
from tests.conftest import needs_latexmk
13+
from tests.conftest import skip_on_github_actions_with_win
14+
1415

1516
try:
1617
import pytask_parallel # noqa: F401

tests/test_parametrize.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
import textwrap
44

55
import pytest
6-
from conftest import needs_latexmk
7-
from conftest import skip_on_github_actions_with_win
86
from pytask import ExitCode
97
from pytask import main
108

9+
from tests.conftest import needs_latexmk
10+
from tests.conftest import skip_on_github_actions_with_win
11+
1112

1213
@needs_latexmk
1314
@skip_on_github_actions_with_win

tox.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ basepython = python
99

1010
[testenv:pytest]
1111
conda_deps =
12-
pytask >=0.2
13-
pytask-parallel >=0.1
12+
pytask >=0.3
13+
pytask-parallel >=0.3
1414
latex-dependency-scanner
1515
pytest
1616
pytest-cov

0 commit comments

Comments
 (0)