Skip to content

Commit 9d31baa

Browse files
committed
DSEGOG-255 Move EPAC DataSim dependency to its own group
- This is so we can exclude it if we don't have the correct SSH permissions to access/clone the repo. For example, the CI cannot clone the repo
1 parent 702e7e8 commit 9d31baa

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
path: ~/.cache/pypoetry/virtualenvs
5757
key: ${{ runner.os }}-poetry-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}
5858
- name: Install dependencies
59-
run: poetry install
59+
run: poetry install --without simulated-data
6060

6161
# Configure s4cmd
6262
- name: Add keys to s4cmd config

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,5 +102,5 @@ def safety(session):
102102
@nox.session(python=["3.8", "3.9", "3.10"], reuse_venv=True)
103103
def tests(session):
104104
args = session.posargs
105-
session.run("poetry", "install", external=True)
105+
session.run("poetry", "install", "--without", "simulated-data", external=True)
106106
session.run("pytest", *args)

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,12 @@ requests = "2.31.0"
4545
pytest-cov = "^3.0.0"
4646
coverage = "^6.4.4"
4747
fabric = "^3.1.0"
48-
epac-data-sim = {git = "[email protected]:CentralLaserFacility/EPAC-DataSim.git"}
4948
pytest-asyncio = "^0.21.0"
5049
s4cmd = "^2.1.0"
5150

51+
[tool.poetry.group.simulated-data.dependencies]
52+
epac-data-sim = {git = "[email protected]:CentralLaserFacility/EPAC-DataSim.git"}
53+
5254
[tool.coverage.paths]
5355
source = ["operationsgateway_api"]
5456

0 commit comments

Comments
 (0)