From 9405f6692832bc3773ef2719e2fcfcf484a6d36f Mon Sep 17 00:00:00 2001 From: Mattwmaster58 Date: Tue, 22 Oct 2024 22:34:53 -0400 Subject: [PATCH] Create python-app.yml --- .github/workflows/python-app.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/python-app.yml diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml new file mode 100644 index 0000000..643109c --- /dev/null +++ b/.github/workflows/python-app.yml @@ -0,0 +1,32 @@ +name: Python application + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + test: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] + + steps: + - uses: actions/checkout@v4 + - name: Setup Python # Set Python version + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install -U pip + pip install pytest playwright + - name: Test with pytest + run: | + pytest