Skip to content
This repository has been archived by the owner on Jun 23, 2024. It is now read-only.

Migrate tests from unittests to pytest #9

Migrate tests from unittests to pytest

Migrate tests from unittests to pytest #9

Workflow file for this run

name: Linters and tests
on:
push:
paths:
- mahjong/**
branches:
- master
pull_request:
branches:
- master
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install libs
run: pip install -r requirements-dev.txt
- name: Lint files
run: make lint
tests:
needs: lint
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "pypy3.8"]
steps:
- uses: actions/checkout@v4
- name: Install libs
run: pip install -r requirements-dev.txt
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Run python tests
run: make tests