-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c223a27
commit 2923d8f
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# This is the main build pipeline that verifies and publishes the software | ||
name: Build | ||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on push events | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
- 'release/**' | ||
- 'feature/**' | ||
- 'issue/**' | ||
- 'issues/**' | ||
- 'dependabot/**' | ||
- 'bug/**' | ||
- 'hotfix/**' | ||
tags-ignore: | ||
- '*' | ||
# Do not trigger build if pyproject.toml was the only thing changed | ||
paths-ignore: | ||
- 'pyproject.toml' | ||
- 'poetry.lock' | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
inputs: | ||
venue: | ||
type: choice | ||
description: Venue to deploy to | ||
options: | ||
- DIT | ||
- UAT | ||
- OPS | ||
|
||
# Only allow 1 execution of this workflow to be running at any given time per-branch. | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ "3.9" ] | ||
os: [ ubuntu-latest ] | ||
name: Build python ${{ matrix.python-version }}, os ${{ matrix.os }} | ||
# The type of runner that the job will run on | ||
runs-on: ${{ matrix.os }} | ||
defaults: | ||
run: | ||
shell: bash -el {0} | ||
steps: | ||
- name: Run build | ||
run: | | ||
echo "build" |