From 1b82d91bc3321e4d8ec22bf62c5c717c1fd9ba17 Mon Sep 17 00:00:00 2001 From: Brett Date: Tue, 26 Sep 2023 09:32:07 -0400 Subject: [PATCH] keep datetime in conf because of asdf --- .github/workflows/sphinx_asdf_ci.yml | 8 ++++++++ sphinx_asdf/conf.py | 1 + 2 files changed, 9 insertions(+) diff --git a/.github/workflows/sphinx_asdf_ci.yml b/.github/workflows/sphinx_asdf_ci.yml index 1ccbf1e..6e6b1ac 100644 --- a/.github/workflows/sphinx_asdf_ci.yml +++ b/.github/workflows/sphinx_asdf_ci.yml @@ -9,6 +9,14 @@ on: pull_request: branches: +# Only cancel in-progress jobs or runs for the current workflow +# This cancels the already triggered workflows for a specific PR without canceling +# other instances of this workflow (other PRs, scheduled triggers, etc) when something +# within that PR re-triggers this CI +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: tox_pytest: name: ${{ matrix.name }} diff --git a/sphinx_asdf/conf.py b/sphinx_asdf/conf.py index 524e49f..c913565 100644 --- a/sphinx_asdf/conf.py +++ b/sphinx_asdf/conf.py @@ -1,3 +1,4 @@ +import datetime # noqa: F401 import os import sys