Skip to content

Commit

Permalink
rename workflow name, add manual workflow duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
admeeer committed Oct 11, 2023
1 parent 820858b commit bb880c4
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: cicd
name: build-and-test-automation

# only run this workflow when something is pushed to main
on:
Expand All @@ -23,7 +23,7 @@ jobs:
# install prerequisite packages for testing
- name: install
run: |
python -m pip install --upgrade pip
python3 -m pip install --upgrade pip
pip install pytest
# run tests using pytest
- name: test
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/manual_build_and_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: build-and-test-automation

# run this workflow manually on GitHub
on:
workflow_dispatch:

# define our jobs
jobs:
build_and_test:
# define our OS
runs-on: ubuntu-latest

# rely on predefined GitHub actions to setup our python environment
steps:
- uses: actions/checkout@v2
# setup python environment
- name: setup
uses: actions/setup-python@v2
with:
python-version: 3.9
# install prerequisite packages for testing
- name: install
run: |
python3 -m pip install --upgrade pip
pip install pytest
# run tests using pytest
- name: test
run: |
pytest tests/

0 comments on commit bb880c4

Please sign in to comment.