From 36864c9552141e6c262b62f40ba2243590084e43 Mon Sep 17 00:00:00 2001 From: kenlhlui Date: Fri, 30 Aug 2024 10:38:08 -0400 Subject: [PATCH] 1. Added GitHub action .yml --- .github/workflows/python-app-pytest.yml | 32 +++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/python-app-pytest.yml diff --git a/.github/workflows/python-app-pytest.yml b/.github/workflows/python-app-pytest.yml new file mode 100644 index 0000000..cd77374 --- /dev/null +++ b/.github/workflows/python-app-pytest.yml @@ -0,0 +1,32 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: Python application + +on: + push: + branches: [ "*" ] + pull_request: + branches: [ "*" ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up Python 3.10 + uses: actions/setup-python@v3 + with: + python-version: "3.10" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pytest + - name: Test with pytest + run: | + pytest \ No newline at end of file