Skip to content

Add dawgdic as a submodule (#21) #63

Add dawgdic as a submodule (#21)

Add dawgdic as a submodule (#21) #63

Workflow file for this run

name: Tests
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
name: "Python ${{ matrix.python-version }} on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: false
steps:
- uses: "actions/checkout@v4"
with:
submodules: true
- uses: "actions/setup-python@v4"
with:
python-version: "${{ matrix.python-version }}"
- name: "Install dependencies"
run: |
python -VV
python -m site
python -m pip install --upgrade pip setuptools cython wheel pytest pytest-cov
- name: "Build DAWG for ${{ matrix.python-version }}"
env:
TEST: true
run: |
python setup.py build_ext --inplace
- name: "Run tests for ${{ matrix.python-version }}"
run: |
python -m pytest --cov=./
- name: Upload coverage data to coveralls.io
run: |
pip install coveralls
coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}