Skip to content

0.2.4 (#41)

0.2.4 (#41) #122

Workflow file for this run

name: CI
on:
push:
branches: ["*"]
pull_request:
branches: ["main"]
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install --with ci
- name: Run pre-commit
run: poetry run pre-commit run --all-files
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install --with ci
- name: Run pytest
run: poetry run pytest
- name: Run coverage
run: poetry run pytest --cov-report term-missing --cov=wordsiv tests/ --ignore=tests/test_snippets.py