-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
setting up github workflow yaml file and updating readme.md with cont…
…inuous deployment concepts
- Loading branch information
Showing
2 changed files
with
110 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,76 @@ | ||
name: Build, Test, and Publish | ||
|
||
# triggers: whenever there is new changes pulled/pushed on this | ||
# repo under given conditions, run the below jobs | ||
on: | ||
pull_request: | ||
types: [opened, synchronize] | ||
push: | ||
branches: | ||
- main | ||
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_dispatch | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
build-test-and-publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# github actions checksout, clones our repo, and checks out the branch we're working in | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: 3.8 | ||
- name: Run | ||
run: | | ||
/bin/bash run.sh install | ||
/bin/bash run.sh build | ||
/bin/bash run.sh publish:test | ||
# env: | ||
# TEST_PYPI_TOKEN: ${{ secrets.TEST_PYPI_TOKEN }} | ||
|
||
# - name: Install dependencies | ||
# run: | | ||
# python -m pip install --upgrade pip | ||
# pip install pre-commit | ||
# - name: Running pre-commit hooks | ||
# run: | | ||
# SKIP=no-commit-to-branch pre-commit run --all-files | ||
|
||
|
||
# https://docs.github.com/en/actions/learn-github-actions/contexts#example-printing-context-information-to-the-log | ||
dump_contexts_to_log: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Dump GitHub context | ||
env: | ||
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
run: echo "$GITHUB_CONTEXT" | ||
- name: Dump job context | ||
env: | ||
JOB_CONTEXT: ${{ toJson(job) }} | ||
run: echo "$JOB_CONTEXT" | ||
- name: Dump steps context | ||
env: | ||
STEPS_CONTEXT: ${{ toJson(steps) }} | ||
run: echo "$STEPS_CONTEXT" | ||
- name: Dump runner context | ||
env: | ||
RUNNER_CONTEXT: ${{ toJson(runner) }} | ||
run: echo "$RUNNER_CONTEXT" | ||
- name: Dump strategy context | ||
env: | ||
STRATEGY_CONTEXT: ${{ toJson(strategy) }} | ||
run: echo "$STRATEGY_CONTEXT" | ||
- name: Dump matrix context | ||
env: | ||
MATRIX_CONTEXT: ${{ toJson(matrix) }} | ||
run: echo "$MATRIX_CONTEXT" | ||
- name: Dump Secrets | ||
env: | ||
SECRETS_CONTEXT: ${{ toJson(secrets) }} | ||
run: echo "$SECRETS_CONTEXT" | ||
- name: Dump Variables | ||
run: echo "${{ toJson(vars) }}" |
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