fix: use env-*.env glob pattern for cleanup in all workflows
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
c3530fe2aa
commit
a59ee53e3c
2 changed files with 4 additions and 4 deletions
|
|
@ -24,7 +24,7 @@ jobs:
|
|||
git reset --hard origin/int
|
||||
test -f env-int.env
|
||||
cp env-int.env .env
|
||||
rm -f env-dev.env env-int.env env-prod.env
|
||||
rm -f env-*.env
|
||||
source .venv/bin/activate
|
||||
pip install -r requirements.txt --no-cache-dir
|
||||
python -m pytest tests/ --ignore=tests/demo
|
||||
|
|
@ -51,7 +51,7 @@ jobs:
|
|||
git reset --hard origin/int
|
||||
test -f env-int.env
|
||||
cp env-int.env .env
|
||||
rm -f env-dev.env env-int.env env-prod.env
|
||||
rm -f env-*.env
|
||||
source .venv/bin/activate
|
||||
pip install -r requirements.txt --no-cache-dir
|
||||
sudo systemctl restart gateway
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ jobs:
|
|||
git reset --hard origin/main
|
||||
test -f env-prod.env
|
||||
cp env-prod.env .env
|
||||
rm -f env-dev.env env-int.env env-prod.env
|
||||
rm -f env-*.env
|
||||
source .venv/bin/activate
|
||||
pip install -r requirements.txt --no-cache-dir
|
||||
python -m pytest tests/ --ignore=tests/demo
|
||||
|
|
@ -51,7 +51,7 @@ jobs:
|
|||
git reset --hard origin/main
|
||||
test -f env-prod.env
|
||||
cp env-prod.env .env
|
||||
rm -f env-dev.env env-int.env env-prod.env
|
||||
rm -f env-*.env
|
||||
source .venv/bin/activate
|
||||
pip install -r requirements.txt --no-cache-dir
|
||||
sudo systemctl restart gateway
|
||||
|
|
|
|||
Loading…
Reference in a new issue