From 70afbdc0279065716f2b70f122c1d566150d6796 Mon Sep 17 00:00:00 2001 From: Will Robertson Date: Wed, 29 May 2024 12:42:56 +0930 Subject: [PATCH] fix coverage --- .github/workflows/check.yml | 4 +--- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index de27e32..5f2aa72 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -51,6 +51,4 @@ jobs: - name: Coverage env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - cd ${{ vars.SOURCE_DIR }} - hatch run test:cov + run: hatch run test:cov diff --git a/pyproject.toml b/pyproject.toml index ed2d7b6..40a22ee 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -86,7 +86,7 @@ dependencies = [ [tool.hatch.envs.test.scripts] test = "python -m pytest" -test-cov = "pwd; ls -lR; coverage run -m pytest" +test-cov = "coverage run -m pytest" coverall = "coveralls --service=github" cov = ["test-cov", "coverall"]