Skip to content
Open
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
26 changes: 26 additions & 0 deletions .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Shellcheck

on:
push:
branches: [3.x]
pull_request:
branches: [3.x]

permissions:
contents: read

jobs:
shellcheck:
name: Check shell scripts
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt update && sudo apt install -y shellcheck
- name: shellcheck
run: |
git grep -l '^#\( *shellcheck \|!\(/bin/\|/usr/bin/env \)\(sh\|bash\|dash\|ksh\)\)' | xargs shellcheck
4 changes: 2 additions & 2 deletions scripts/build-public-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ fi

if [ -n "${TAG_NAME}" ] && [[ "$TAG_NAME" =~ ^v[0-9]\.[0-9]+([\.a-z0-9]+)?$ ]]; then
echo "Building ${BRANCH_NAME} docs for tag: ${TAG_NAME}"
env DOCS_VERSION=$BRANCH_NAME sphinx-build -a docs/ docs/public/en/$BRANCH_NAME/
env DOCS_VERSION="$BRANCH_NAME" sphinx-build -a docs/ docs/public/en/"$BRANCH_NAME"/

if [ "${BRANCH_NAME}" = "${LATEST_BRANCH}" ]; then
echo "Generating /page redirects"
env DOCS_VERSION=$BRANCH_NAME python scripts/generate_redirect_pages.py
env DOCS_VERSION="$BRANCH_NAME" python scripts/generate_redirect_pages.py
fi
fi

Expand Down
2 changes: 1 addition & 1 deletion scripts/dev-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
set -euo pipefail

echo "Execute pytest..."
pytest $@
pytest "$@"

echo "Tests complete!"
6 changes: 3 additions & 3 deletions scripts/release.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/sh
#!/bin/bash

set -euo pipefail

VERSION=`python setup.py --version`
MAJOR_BRANCH="`python setup.py --version | cut -d'.' -f1`.x"
VERSION=$(python setup.py --version)
MAJOR_BRANCH="$(python setup.py --version | cut -d'.' -f1).x"

echo "# Releasing pyinfra v${VERSION} (branch ${MAJOR_BRANCH})"

Expand Down
Loading