Skip to content

Add basic GitHub action #1

Add basic GitHub action

Add basic GitHub action #1

Workflow file for this run

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