diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index 51e5893..e420b7c 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -11,6 +11,9 @@ on: required: false type: string +env: + PIP_UPLOADED_PRIOR_TO: P7D + jobs: pypi: name: build and deploy to PyPI diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index e50f005..ca4db26 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -2,6 +2,9 @@ name: CI on: [pull_request, push, workflow_dispatch] +env: + PIP_UPLOADED_PRIOR_TO: P7D + jobs: pre-commit: runs-on: ubuntu-latest diff --git a/.github/workflows/testing.yaml b/.github/workflows/testing.yaml index de96381..c65670d 100644 --- a/.github/workflows/testing.yaml +++ b/.github/workflows/testing.yaml @@ -7,6 +7,9 @@ on: branches: - '**' +env: + PIP_UPLOADED_PRIOR_TO: P7D + jobs: build: # Use vis server to run diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 04709fc..9e18e37 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -10,6 +10,10 @@ build: os: ubuntu-22.04 tools: python: "3.12" + jobs: + post_create_environment: + - mkdir -p "$HOME/.config/pip" + - printf "[global]\nuploaded-prior-to = P7D\n" > "$HOME/.config/pip/pip.conf" # You can also specify other tool versions: # nodejs: "19" # rust: "1.64"