From 1188ee09961d438aeca9bb1c879d93dd8f151e61 Mon Sep 17 00:00:00 2001 From: skshetry Date: Mon, 23 May 2022 16:07:36 +0545 Subject: [PATCH] cruft updates: force nox color, single workflow run and setuptools_scm for versioning (#50) --- .github/workflows/release.yml | 5 +++++ .github/workflows/tests.yml | 9 +++++++++ pyproject.toml | 4 +++- setup.cfg | 1 - 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 16ca0e8..a28ec3d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,12 +4,17 @@ on: release: types: [published] +env: + FORCE_COLOR: "1" + jobs: release: runs-on: ubuntu-latest steps: - name: Check out the repository uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Set up Python 3.7 uses: actions/setup-python@v3 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 98ecf9a..0186757 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,6 +2,13 @@ name: Tests on: [push, pull_request] +env: + FORCE_COLOR: "1" + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + jobs: tests: timeout-minutes: 10 @@ -15,6 +22,8 @@ jobs: steps: - name: Check out the repository uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Set up Python ${{ matrix.pyv }} uses: actions/setup-python@v3 diff --git a/pyproject.toml b/pyproject.toml index f07b12f..199bd25 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,9 @@ [build-system] -requires = ["setuptools>=48", "wheel"] +requires = ["setuptools>=48", "setuptools_scm[toml]>=6.3.1"] build-backend = "setuptools.build_meta" +[tool.setuptools_scm] + [tool.black] line-length = 79 include = '\.pyi?$' diff --git a/setup.cfg b/setup.cfg index 9d661c6..5c996d4 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,7 +1,6 @@ [metadata] description = DVC render name = dvc-render -version = 0.0.5 long_description = file: README.rst long_description_content_type = text/x-rst license = Apache-2.0