Skip to content

Commit 9a6faf8

Browse files
Remove old external primer
1 parent 0baa7e9 commit 9a6faf8

File tree

5 files changed

+0
-123
lines changed

5 files changed

+0
-123
lines changed

.github/workflows/primer-test.yaml

-32
Original file line numberDiff line numberDiff line change
@@ -96,35 +96,3 @@ jobs:
9696
. venv/bin/activate
9797
pip install -e .
9898
pytest -m primer_stdlib --primer-stdlib -n auto -vv
99-
100-
pytest-primer-external-batch-one:
101-
name: run on batch one / ${{ matrix.python-version }} / Linux
102-
runs-on: ubuntu-latest
103-
timeout-minutes: 60
104-
needs: prepare-tests-linux
105-
strategy:
106-
matrix:
107-
python-version: [3.8, 3.9, "3.10", "3.11"]
108-
steps:
109-
- name: Check out code from GitHub
110-
uses: actions/[email protected]
111-
- name: Set up Python ${{ matrix.python-version }}
112-
id: python
113-
uses: actions/[email protected]
114-
with:
115-
python-version: ${{ matrix.python-version }}
116-
check-latest: true
117-
- name: Restore Python virtual environment
118-
id: cache-venv
119-
uses: actions/[email protected]
120-
with:
121-
path: venv
122-
fail-on-cache-miss: true
123-
key:
124-
${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{
125-
needs.prepare-tests-linux.outputs.python-key }}
126-
- name: Run pytest
127-
run: |
128-
. venv/bin/activate
129-
pip install -e .
130-
pytest -m primer_external_batch_one --primer-external -n auto -vv

pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ addopts = "--strict-markers"
9191
filterwarnings = "error"
9292
markers = [
9393
"primer_stdlib: Checks for crashes and errors when running pylint on stdlib",
94-
"primer_external_batch_one: Checks for crashes and errors when running pylint on external libs (batch one)",
9594
"benchmark: Baseline of pylint performance, if this regress something serious happened",
9695
"timeout: Marks from pytest-timeout.",
9796
"needs_two_cores: Checks that need 2 or more cores to be meaningful",

tests/conftest.py

-15
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,6 @@ def pytest_addoption(parser: pytest.Parser) -> None:
8484
default=False,
8585
help="Run primer stdlib tests",
8686
)
87-
parser.addoption(
88-
"--primer-external",
89-
action="store_true",
90-
default=False,
91-
help="Run primer external tests",
92-
)
9387
parser.addoption(
9488
"--minimal-messages-config",
9589
action="store_true",
@@ -107,15 +101,6 @@ def pytest_collection_modifyitems(
107101
config: pytest.Config, items: list[pytest.Function]
108102
) -> None:
109103
"""Convert command line options to markers."""
110-
# Add skip_primer_external mark
111-
if not config.getoption("--primer-external"):
112-
skip_primer_external = pytest.mark.skip(
113-
reason="need --primer-external option to run"
114-
)
115-
for item in items:
116-
if "primer_external_batch_one" in item.keywords:
117-
item.add_marker(skip_primer_external)
118-
119104
# Add skip_primer_stdlib mark
120105
if not config.getoption("--primer-stdlib"):
121106
skip_primer_stdlib = pytest.mark.skip(

tests/primer/packages_to_lint_batch_one.json

-2
This file was deleted.

tests/primer/test_primer_external.py

-73
This file was deleted.

0 commit comments

Comments
 (0)