Skip to content

Commit

Permalink
cruft updates: force nox color, single workflow run and setuptools_sc…
Browse files Browse the repository at this point in the history
…m for versioning (#50)
  • Loading branch information
skshetry committed May 23, 2022
1 parent 744799d commit 1188ee0
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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?$'
Expand Down
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 1188ee0

Please sign in to comment.