Add minimal github action sequence #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
- run: | ||
# install all dependencies (including development ones) defined through pyproject.toml | ||
- pdm install --group :all | ||
- pdm run check | ||
# download model before using it in tests | ||
- pdm run download-spacy-model | ||
- pdm run test |