Skip to content

ci: Creating initial github actions #12

ci: Creating initial github actions

ci: Creating initial github actions #12

Workflow file for this run

name: Common Workflow
on:
pull_request:
branches:
- main
- dev
jobs:
pre-commit:
name: Pre-commit CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
with:
python-version: "3.11"
- name: Install dependencies
run: |
pdm install -G :all
- name: Run pre-commit
run: |
pdm pre-commit
test:
name: Test CI
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install project
run: |
pdm install -G :all
- name: Run tests
run: |
pdm test