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/