Skip to content

Commit

Permalink
CI: code formatter (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdarwin authored Dec 21, 2023
1 parent 303d528 commit 38ab3ed
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 1 deletion.
56 changes: 56 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 0 additions & 1 deletion publish_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 38ab3ed

Please sign in to comment.