Skip to content

bump up to 0.2.1

bump up to 0.2.1 #173

Workflow file for this run

name: "Validation"
on:
pull_request:
push:
branches:
- master
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: pip-${{ hashFiles('requirements.txt') }}
- name: Install requirements
run: |
pip install -r requirements.txt
- name: Lint with flake8
run: |
flake8 taskkit tests
- name: Lint with mypy
run: |
mypy taskkit tests
- name: Lint with pyright
run: |
pyright taskkit tests
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
services:
mysql:
image: mysql/mysql-server:8.0.23
ports:
- 3306:3306
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: taskkit
MYSQL_ROOT_HOST: '%'
redis:
image: redis:6.0
ports:
- 6379:6379
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: pip-${{ hashFiles('requirements.txt') }}
- name: Install requirements
run: |
pip install -r requirements.txt
- name: Unit tests
run: |
python manage.py test