Skip to content

Commit 05c7ab8

Browse files
fix: rework CI
1 parent 62a79c2 commit 05c7ab8

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

.github/workflows/cicd.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,23 @@ jobs:
4949
ON_UBUNTU: true
5050

5151
steps:
52-
- name: Run tests
53-
uses: ansys/actions/tests-pytest@v10
52+
- name: Checkout repository
53+
uses: actions/checkout@v3
54+
- name: Set up Python
55+
uses: actions/setup-python@v4
5456
with:
5557
python-version: ${{ env.MAIN_PYTHON_VERSION }}
58+
cache: 'pip'
59+
60+
- name: Install dependencies
61+
run: |
62+
python -m pip install --upgrade pip
63+
pip install -e .[tests]
64+
pip install tests/launcher/pkg_with_entrypoint
65+
66+
- name: Run tests
67+
run: |
68+
pytest
5669
5770
doc-build:
5871
name: Build documentation

tests/launcher/conftest.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323

2424
from functools import partial
2525
import importlib.metadata
26-
import pathlib
27-
import subprocess
28-
import sys
2926
from unittest.mock import Mock
3027
import warnings
3128

@@ -46,11 +43,6 @@ def pytest_configure(config):
4643
"Please run: pip install -e tests/launcher/pkg_with_entrypoint",
4744
stacklevel=1,
4845
)
49-
pkg_path = pathlib.Path(__file__).parent / "launcher" / "pkg_with_entrypoint"
50-
subprocess.run(
51-
[sys.executable, "-m", "pip", "install", "-e", str(pkg_path.resolve())],
52-
check=True,
53-
)
5446

5547

5648
@pytest.fixture(autouse=True)

0 commit comments

Comments
 (0)