diff --git a/.github/workflows/build-test-publish.yml b/.github/workflows/build-test-publish.yml index 04fb310a..85e53e4e 100644 --- a/.github/workflows/build-test-publish.yml +++ b/.github/workflows/build-test-publish.yml @@ -42,6 +42,9 @@ jobs: - name: Add git PAT run: |- git config --global --add url."https://${{ secrets.PAT_GITHUB }}@github".insteadOf https://github + - name: Pre-install private Github dependencies + run: |- + python -m pip install git+https://github.com/DSD-DBS/polarion-rest-api-client.git@v0.2.1 - name: Install test dependencies run: |- python -m pip install '.[test]' diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c217c946..a15a2394 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,14 +6,9 @@ stages: - test - deploy -.patch-pyproject-toml: &patch-pyproject-toml - - sed -i -e 's/\(^ "polarion-rest-api-client\).*",/\1",/' pyproject.toml - wheel: stage: build extends: .wheel - before_script: - - *patch-pyproject-toml pages: stage: build @@ -22,8 +17,6 @@ pages: OUTPUT_DIR: public SPHINX_DEPENDENCIES: ".[docs]" only: [main] - before_script: - - *patch-pyproject-toml pages:test: extends: pages @@ -31,8 +24,6 @@ pages:test: OUTPUT_DIR: pages-test only: [] except: [main] - before_script: - - *patch-pyproject-toml coverage: stage: test @@ -40,15 +31,11 @@ coverage: variables: COVERAGE_SOURCE: capella2polarion needs: [] - before_script: - - *patch-pyproject-toml pre-commit: stage: test extends: .pre-commit needs: [] - before_script: - - *patch-pyproject-toml artifactory: stage: deploy diff --git a/pyproject.toml b/pyproject.toml index 0bb414cd..a8aac548 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,7 +31,7 @@ dependencies = [ "capellambse", "click", "PyYAML", - "polarion-rest-api-client @ git+https://github.com/DSD-DBS/polarion-rest-api-client.git@v0.2.1", + "polarion-rest-api-client==0.2.1", "requests", ]