From 2c21b9a1194e60314d4f7fc0c21cbceab7df5bfa Mon Sep 17 00:00:00 2001 From: Paul Watts Date: Thu, 17 Oct 2024 08:53:15 -0700 Subject: [PATCH] Add basic GitHub action --- .github/workflows/python-app.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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..99afa0f --- /dev/null +++ b/.github/workflows/python-app.yml @@ -0,0 +1,29 @@ +name: Python application + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up PDM + uses: pdm-project/setup-pdm@v4 + with: + python-version: 3.12 + - name: Install dependencies + run: | + pdm sync -d -G testing + - name: Lint + run: | + pdm lint + - name: Test + run: | + pdm test