Skip to content

Commit

Permalink
chore(frontend-python): Check that we are on the well named release b…
Browse files Browse the repository at this point in the history
…ranch
  • Loading branch information
BourgerieQuentin committed Aug 12, 2024
1 parent bad1230 commit 031e8e7
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/concrete_python_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,26 @@ env:
RELEASE_TYPE: ${{ inputs.user_inputs }}

jobs:
test-python-api-docs:
release-checks:
runs-on: ${{ github.event.inputs.runner_name }}
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
submodules: recursive
fetch-depth: 0
- name: Build python api documentation
run: ci/scripts/make_apidocs.sh
- name: Check we are on well on the release branch
run: |
EXPECTED_BRANCH=$(git describe --tags --abbrev=0 | sed -e "s/v\([0-9]*\.[0-9]\)*\..*/release\/\1.x/")
ACTUAL_BRANCH=$(git rev-parse --abbrev-ref HEAD)
if [ $EXPECTED_BRANCH != $ACTUAL_BRANCH ]; then
echo "Unexpected branch name, got ${ACTUAL_BRANCH} expect ${EXPECTED_BRANCH}"
exit 1
fi
- name: Check python api doc is up to date
- run: ci/scripts/make_apidocs.sh

build-linux-x86:
needs: [test-python-api-docs]
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
Expand Down Expand Up @@ -135,7 +142,6 @@ jobs:
retention-days: 3

build-macos:
needs: [test-python-api-docs]
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
Expand Down Expand Up @@ -240,7 +246,7 @@ jobs:
base64-subjects: ${{ needs.hash.outputs.hash }}

push:
needs: [build-linux-x86, build-macos, provenance]
needs: [release-checks, build-linux-x86, build-macos, provenance]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
Expand Down

0 comments on commit 031e8e7

Please sign in to comment.