Skip to content

Commit a236782

Browse files
authored
Don't run cookiecutter tests in arm64 (#155)
We don't really create project in arm64 yet, so it's not strictly necessary to have it tested, and test in arm64 take too long as they need to run in a emulator. If at some point arm64 is popular enough so we want to make sure new projects can be started in it, there will probably be more accessible native arm64 GitHub Actions runners. To do this we mark cookiecutter tests, so we can easily exclude them. Fixes #152.
2 parents a0c673a + 3f17033 commit a236782

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,10 @@ jobs:
177177
--net=host \
178178
--platform linux/${{ matrix.arch }} \
179179
localhost/nox-cross-arch:latest \
180-
bash -c "pip install -e .[dev-noxfile]; nox --install-only -e ${{ matrix.nox-session }}; pip freeze; nox -e ${{ matrix.nox-session }}"
180+
bash -c "pip install -e .[dev-noxfile]; \
181+
nox --install-only -e ${{ matrix.nox-session }}; \
182+
pip freeze; \
183+
nox -e ${{ matrix.nox-session }} -- -m 'not cookiecutter'"
181184
timeout-minutes: 30
182185

183186
# This ensures that the runner has access to the pip cache.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ ignore_missing_imports = true
185185
testpaths = ["src", "tests"]
186186
markers = [
187187
"integration: integration tests (deselect with '-m \"not integration\"')",
188+
"cookiecutter: integration tests (deselect with '-m \"not cookiecutter\"')",
188189
]
189190

190191
[tool.setuptools_scm]

tests/integration/test_cookiecutter_generation.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828

2929
@pytest.mark.integration
30+
@pytest.mark.cookiecutter
3031
@pytest.mark.parametrize("repo_type", [*config.RepositoryType])
3132
def test_golden(
3233
tmp_path: pathlib.Path,
@@ -66,6 +67,7 @@ def test_golden(
6667

6768

6869
@pytest.mark.integration
70+
@pytest.mark.cookiecutter
6971
@pytest.mark.parametrize("repo_type", [*config.RepositoryType])
7072
def test_generation(tmp_path: pathlib.Path, repo_type: config.RepositoryType) -> None:
7173
"""Test generation of a new repo."""

0 commit comments

Comments
 (0)