Skip to content

Commit 5d7dc95

Browse files
committed
Disable steps not required for packaging-only
1 parent ef2c3da commit 5d7dc95

1 file changed

Lines changed: 19 additions & 17 deletions

File tree

β€Ž.github/workflows/build.ymlβ€Ž

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -87,27 +87,29 @@ jobs:
8787
virtualenvs-create: true
8888
virtualenvs-in-project: true
8989

90-
# Cache dependencies (i.e. all the stuff in your `pyproject.toml`).
91-
- name: πŸ—ƒ Cache 🧾 Dependencies
92-
id: cache-deps
93-
uses: actions/cache@v4
94-
with:
95-
path: .venv
96-
key: pydeps-${{ hashFiles('**/poetry.lock') }}
97-
98-
# No Poetry dynamic versioning in this project, we're using the POM instead!
90+
### No dependencies and project installation required, we're just packaging.
91+
# # Cache dependencies (i.e. all the stuff in your `pyproject.toml`).
92+
# - name: πŸ—ƒ Cache 🧾 Dependencies
93+
# id: cache-deps
94+
# uses: actions/cache@v4
95+
# with:
96+
# path: .venv
97+
# key: pydeps-${{ hashFiles('**/poetry.lock') }}
98+
99+
### No poetry-dynamic-versioning here, we're using the POM instead!
99100
# - name: 🎭 Install Poetry dynamic-versioning πŸ”Œ plugin
100101
# run: poetry self add "poetry-dynamic-versioning[plugin]"
101102

102-
# Install dependencies. `--no-root` means "install all dependencies but
103-
# not the project itself", which is what you want to avoid caching _your_
104-
# code. The `if` statement ensures this only runs on a cache miss.
105-
- name: 🎭 Install 🧾 Dependencies
106-
run: scripts/run-poetry.sh install --no-interaction --no-root
107-
if: steps.cache-deps.outputs.cache-hit != 'true'
103+
### No dependencies and project installation required, we're just packaging.
104+
# # Install dependencies. `--no-root` means "install all dependencies but
105+
# # not the project itself", which is what you want to avoid caching _your_
106+
# # code. The `if` statement ensures this only runs on a cache miss.
107+
# - name: 🎭 Install 🧾 Dependencies
108+
# run: scripts/run-poetry.sh install --no-interaction --no-root
109+
# if: steps.cache-deps.outputs.cache-hit != 'true'
108110

109-
- name: 🎭 Install πŸ›– project
110-
run: scripts/run-poetry.sh install --no-interaction
111+
# - name: 🎭 Install πŸ›– project
112+
# run: scripts/run-poetry.sh install --no-interaction
111113

112114
- name: πŸŽ­πŸ‘· Build 🧱 project
113115
run: scripts/run-poetry.sh build

0 commit comments

Comments
Β (0)