From bade7a9aad70dc7adb548828c1cb88f2a1a56d45 Mon Sep 17 00:00:00 2001 From: zlatsic Date: Sun, 29 Sep 2024 01:36:09 +0200 Subject: [PATCH] correct wf --- .github/workflows/test-plat.yaml | 2 +- dodo.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-plat.yaml b/.github/workflows/test-plat.yaml index 518aab5..6ef6e2e 100644 --- a/.github/workflows/test-plat.yaml +++ b/.github/workflows/test-plat.yaml @@ -10,7 +10,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: 3.12 - - name: Install pytest + - name: Install requirements run: "pip install -r requirements.txt" - name: Plat tests run: "doit plat_test" \ No newline at end of file diff --git a/dodo.py b/dodo.py index c129b28..9c49e0d 100644 --- a/dodo.py +++ b/dodo.py @@ -50,7 +50,9 @@ def run(args): def task_dist(): """Create dist""" def run(args): - shutil.rmtree(repo_path / "dist") + dist_path = repo_path / "dist" + if dist_path.exists(): + shutil.rmtree(dist_path) subprocess.run(['python', "-m", "build", "-sw"]) return {'actions': [run], 'pos_arg': 'args'}