From 2d45280eb12e358feb212a15562cd875c0c78384 Mon Sep 17 00:00:00 2001 From: sdarwin Date: Thu, 21 Dec 2023 12:35:30 -0700 Subject: [PATCH] CI: code formatter --- .github/workflows/ci.yml | 56 ++++++++++++++++++++++++++++++++++++++++ publish_release.py | 1 - 2 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..5da7470 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,56 @@ +--- +# Copyright 2023 Sam Darwin +# +# Distributed under the Boost Software License, Version 1.0. +# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt) + +name: CI + +on: + pull_request: + push: + branches: + - master + - develop + - feature/* + +jobs: + linux: + defaults: + run: + shell: bash + + strategy: + fail-fast: false + matrix: + include: + - os: ubuntu-latest + container: ubuntu:22.04 + + timeout-minutes: 720 + runs-on: ${{matrix.os}} + container: ${{matrix.container}} + + steps: + - name: Git - Get Sources + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Set up Python 3.11 + uses: actions/setup-python@v4 + with: + python-version: 3.11 + + - name: Install dependencies + run: | + set -xe + python -m pip install black + + - name: Lint + run: | + set -xe + files="publish_release.py MakeBoostDistro.py ci_boost_release.py ci_boost_common.py" + for file in ${files}; do + black --check ${file} + done diff --git a/publish_release.py b/publish_release.py index a618db7..25eab95 100755 --- a/publish_release.py +++ b/publish_release.py @@ -242,7 +242,6 @@ def uploadJFROGFile(sourceFileName, destRepo): else: if not options.dryrun: for profile, bucket in aws_profiles.items(): - # AWS cli method: # archivePathRemote="s3://" + bucket + "/archives/" + hostedArchiveName + "/" # os.system("aws s3 cp --recursive --region %s --profile %s %s %s" % (aws_region, profile, archivePathLocal, archivePathRemote))