Skip to content

Commit

Permalink
Merge pull request #3 from NetherlandsForensicInstitute/feature/run-g…
Browse files Browse the repository at this point in the history
…ithub-actions

Add minimal github action sequence
  • Loading branch information
akaIDIOT authored Oct 31, 2024
2 parents 996c01a + ee514a2 commit de2054a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Python

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pdm-project/setup-pdm@v4
with:
python-version: "3.10"
- name: Install dependencies
# install all dependencies (including development ones) defined through pyproject.toml
run: pdm install --group :all
- name: Run checks
run: pdm run check
- name: Download additional models
run: pdm run python -m ensurepip && pdm run download-spacy-model
- name: Run tests
run: pdm run test

0 comments on commit de2054a

Please sign in to comment.