Skip to content

Commit 3ff0e27

Browse files
authored
Ci free space (#1386)
* Free Disk Space on pod_dev CI to avoid an OSError: `[Errno 28] No space left on device`
1 parent 1f58b3f commit 3ff0e27

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

.github/workflows/pod_dev.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,23 @@ jobs:
3030
runs-on: ubuntu-latest
3131

3232
steps:
33+
34+
- name: Free Disk Space (Ubuntu)
35+
uses: jlumbroso/free-disk-space@main
36+
with:
37+
# this might remove tools that are actually needed,
38+
# if set to "true" but frees about 6 GB
39+
tool-cache: false
40+
41+
# all of these default to true, but feel free to set to
42+
# "false" if necessary for your workflow
43+
android: true
44+
dotnet: true
45+
haskell: true
46+
large-packages: true
47+
docker-images: false
48+
swap-storage: true
49+
3350
- uses: actions/checkout@v4
3451

3552
- uses: actions/setup-node@v4

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ upgrade:
4141

4242
# Création des données initiales dans la BDD SQLite intégrée
4343
createDB:
44-
find . -path "*/migrations/*.py" -not -name "__init__.py" -delete
45-
find . -path "*/migrations/*.pyc" -delete
4644
python3 manage.py delete_flatpages_migrations
45+
find . -path "*/migrations/*.py" -not -name "__init__.py" -not -path "./.venv/*" -delete
46+
find . -path "*/migrations/*.pyc" -delete
4747
make updatedb
4848
make migrate
4949
python3 -Wd manage.py loaddata initial_data

0 commit comments

Comments
 (0)