Skip to content

lili la o pona e nasin Ci #15

lili la o pona e nasin Ci

lili la o pona e nasin Ci #15

Workflow file for this run

---
name: Tests
on:
pull_request:
branches:
- main
- dev
- working
- "feature/*"
- "bug/*"
paths-ignore:
- "docs/**"
- "news/**"
- "*.md"
- Dockerfile
push:
branches:
- main
- dev
- working
- "feature/*"
- "bug/*"
paths-ignore:
- "docs/**"
- "news/**"
- "*.md"
- Dockerfile
workflow_dispatch:
concurrency:
group: ${{ github.event.number || github.run_id }}
cancel-in-progress: true
jobs:
Testing:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os:
- ubuntu-latest
# - windows-latest
# - macos-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: pdm-project/setup-pdm@v4
with:
python-version: ${{ matrix.python-version }}
- name: Set Variables
id: set_variables
shell: bash
run: |
echo "PY=$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')" >> $GITHUB_OUTPUT
- name: Cache venv
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('pdm.lock') }}
restore-keys: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('pdm.lock') }}
- name: Install Dev Dependencies
run: |
pdm install --verbose --dev --group :all --without nltk
pdm info
- name: Run Tests
run: pdm run pytest --verbose --cov=sonatoki --cov-config=pyproject.toml tests