From bb880c455b2e165ccf803effcbf779f1298131d2 Mon Sep 17 00:00:00 2001 From: admeeer Date: Wed, 11 Oct 2023 14:21:50 -0700 Subject: [PATCH] rename workflow name, add manual workflow duplicate --- .github/workflows/build_and_test.yml | 4 +-- .github/workflows/manual_build_and_test.yml | 29 +++++++++++++++++++++ 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/manual_build_and_test.yml diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 2338d97..fcc62c0 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -1,4 +1,4 @@ -name: cicd +name: build-and-test-automation # only run this workflow when something is pushed to main on: @@ -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 diff --git a/.github/workflows/manual_build_and_test.yml b/.github/workflows/manual_build_and_test.yml new file mode 100644 index 0000000..2537834 --- /dev/null +++ b/.github/workflows/manual_build_and_test.yml @@ -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/