From 5f7e9003077cb660c2897bbc56cacbdcd3136fe2 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Fri, 13 Oct 2023 20:01:24 +0300 Subject: [PATCH] exe: fix and test PKG type marker --- .github/workflows/build.yaml | 6 +++--- build_bin.py | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 7e8d5e9..55797ed 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -23,6 +23,9 @@ jobs: run: pip install -r requirements.txt - name: Download dvc pkg run: python download.py + - name: Set pkg type + shell: bash + run: echo 'PKG = "exe"' > dvc/dvc/_build.py - name: Install dvc requirements run: | pip install .\dvc[all] @@ -31,9 +34,6 @@ jobs: # https://github.com/iterative/dvc/issues/9654 pip install flufl-lock==7.1.1 dvc doctor - - name: Set pkg type - shell: bash - run: echo 'PKG = "exe"' > dvc/_build.py - name: Build binary run: python build_bin.py - name: Pull images diff --git a/build_bin.py b/build_bin.py index 05cc48b..061f5c0 100644 --- a/build_bin.py +++ b/build_bin.py @@ -40,5 +40,6 @@ ] print(out) +assert "(exe)" in out.splitlines()[0] for remote in remotes: assert f"\t{remote}" in out, f"Missing support for {remote}"