From 5a24a28e02dd8e7d863f9f2f26ca1db9914c1f09 Mon Sep 17 00:00:00 2001 From: Ryan May Date: Fri, 14 May 2021 17:27:55 -0600 Subject: [PATCH 1/2] MNT: Remove unused `gen_versions_json.py` This has been superseded by the CI action run on the gh-pages branch. --- ci/gen_versions_json.py | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100755 ci/gen_versions_json.py diff --git a/ci/gen_versions_json.py b/ci/gen_versions_json.py deleted file mode 100755 index fe1eb27d7d6..00000000000 --- a/ci/gen_versions_json.py +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env python -# Copyright (c) 2017 MetPy Developers. -# Distributed under the terms of the BSD 3-Clause License. -# SPDX-License-Identifier: BSD-3-Clause -"""Generate versions.json from directory with different doc versions.""" - -import glob - -with open('versions.json', 'wt') as version_file: - version_strings = ','.join('"{}"'.format(d) for d in sorted(glob.glob('v*.[0-9]*'))) - version_file.write('{"versions":["latest","dev",' + version_strings + ']}\n') From 1ff72a23ab09f81586bd8c0cc0dbfd271f5c68a8 Mon Sep 17 00:00:00 2001 From: Ryan May Date: Mon, 21 Jun 2021 14:25:51 -0600 Subject: [PATCH 2/2] CI: Log stderr as well for nightly builds --- .github/workflows/nightly-builds.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nightly-builds.yml b/.github/workflows/nightly-builds.yml index 5da29897b2e..099599fc333 100644 --- a/.github/workflows/nightly-builds.yml +++ b/.github/workflows/nightly-builds.yml @@ -90,7 +90,7 @@ jobs: run: | set -o pipefail export TEST_DATA_DIR=$GITHUB_WORKSPACE/staticdata - python -m pytest --mpl -W error::metpy.deprecation.MetpyDeprecationWarning tests/ | tee tests-${{ matrix.python-version }}.log || ( + python -m pytest --mpl -W error::metpy.deprecation.MetpyDeprecationWarning tests/ |& tee tests-${{ matrix.python-version }}.log || ( echo '::set-output name=LOG_AVAILABLE::true' && false ) @@ -191,7 +191,7 @@ jobs: set -o pipefail export TEST_DATA_DIR=$GITHUB_WORKSPACE/staticdata pushd docs - make overridecheck html O=-W | tee build-${{ matrix.python-version }}.log || ( + make overridecheck html O=-W |& tee build-${{ matrix.python-version }}.log || ( echo '::set-output name=LOG_AVAILABLE::true' && false ) popd @@ -265,4 +265,4 @@ jobs: params.issue_number = existing[0].number; console.log(`Updating existing issue: ${params.issue_number}`) github.issues.update(params) - } \ No newline at end of file + }