Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: code formatter #54

Merged
merged 1 commit into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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