diff --git a/.github/workflows/publish_sandbox.yaml b/.github/workflows/publish_sandbox.yaml index ec89ba3..d607a54 100644 --- a/.github/workflows/publish_sandbox.yaml +++ b/.github/workflows/publish_sandbox.yaml @@ -27,6 +27,9 @@ jobs: with: node-version: '20' + - name: Install Poetry + run: curl -sSL https://install.python-poetry.org | python3 - + - name: Install Python and Node dependencies run: | make install @@ -50,7 +53,7 @@ jobs: - name: Deploy sandbox spec to Proxygen run: | - proxygen instance deploy sandbox eligibility-signposting-api build/specification/sandbox/eligibility-signposting-api.yaml + proxygen instance deploy sandbox eligibility-signposting-api build/specification/sandbox/eligibility-signposting-api.yaml --no-confirm - name: Build and publish sandbox Docker image run: | diff --git a/Makefile b/Makefile index ecff3ac..eb55436 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,9 @@ install-node: npm install --legacy-peer-deps #Condensed Target to run all targets above. -install: install-node install-python .git/hooks/pre-commit +install: install-node install-python + +make-hooks: .git/hooks/pre-commit #Run the npm linting script (specified in package.json). Used to check the syntax and formatting of files. lint: @@ -156,6 +158,11 @@ convert-postman: # Create Postman collection from OAS spec portman -l /app/eligibility-signposting-api.yaml -o /app/postman/collection.json echo >> $(POSTMAN_DIR)/collection.json rm $(POSTMAN_DIR)/eligibility-signposting-api.yaml + +build-and-publish-sandbox-image: # Build and publish the sandbox Docker image + $(MAKE) -C sandbox build-and-publish-sandbox-image + + # ============================================================================== ${VERBOSE}.SILENT: \ diff --git a/poetry.lock b/poetry.lock index 1df05aa..70826e0 100644 --- a/poetry.lock +++ b/poetry.lock @@ -373,5 +373,5 @@ tests = ["build", "coverage", "mypy", "ruff", "wheel"] [metadata] lock-version = "2.1" -python-versions = "^3.13" -content-hash = "23d89ff43dd8ce7166b9ce17305f7e9cc23e7f0953ce28cd5b35554cdbd12c1e" +python-versions = "^3.11" +content-hash = "52cd7c345199cdfd491fd8551655783c3cfec79ce8d61d07189cf12d71dcff84" diff --git a/pyproject.toml b/pyproject.toml index 4bf51ad..933028c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ authors = [ #TODO add authors ] readme = "README.md" -requires-python = ">=3.13" +requires-python = ">=3.11" repository = "https://github.com/NHSDigital/eligibility-signposting-api-specification" homepage = "https://digital.nhs.uk/developer/api-catalogue" keywords = ["healthcare", "uk", "nhs", "vaccination", "api"] #TODO add additional keywords @@ -17,7 +17,7 @@ requires = ["poetry-core>=2.0.0,<3.0.0"] build-backend = "poetry.core.masonry.api" [tool.poetry.dependencies] -python = "^3.13" +python = "^3.11" yq = "^3.2.3" [tool.poetry.group.dev.dependencies]