Skip to content

Release 0.2.0 Dev Branch #159

Release 0.2.0 Dev Branch

Release 0.2.0 Dev Branch #159

Workflow file for this run

name: Core tests
on:
push:
branches:
- master
paths-ignore:
- "*.md"
pull_request:
types: [opened, synchronize, reopened, edited]
paths-ignore:
- "*.md"
workflow_dispatch:
env:
MODULE_NAME: "calamancy"
RUN_LINTER: "false"
jobs:
run:
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python_version: ["3.11"]
include:
- os: ubuntu-latest
python_version: "3.9"
- os: windows-latest
python_version: "3.10"
runs-on: ${{ matrix.os }}
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
- name: Build distributable (sdist)
run: |
python -m pip install --upgrade pip
python -m pip install -U build pip setuptools
python -m pip install .[dev]
- name: Run linter checks
shell: bash
if: ${{ env.RUN_LINTER == 'true' }}
run: |
ruff check .
python -m mypy $MODULE_NAME
- name: Test import
shell: bash
run: |
python -c "import $MODULE_NAME" -Werror
- name: "Run tests"
shell: bash
run: |
python -m pip install https://huggingface.co/ljvmiranda921/tl_calamancy_md/resolve/main/tl_calamancy_md-0.1.0-py3-none-any.whl --no-deps
python -m pytest --pyargs $MODULE_NAME