Skip to content

Commit

Permalink
Add basic GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcwatts committed Oct 17, 2024
1 parent fa43d53 commit 2c21b9a
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2c21b9a

Please sign in to comment.