Skip to content

Merge pull request #4 from wlatanowicz/wl/redis-serializer #38

Merge pull request #4 from wlatanowicz/wl/redis-serializer

Merge pull request #4 from wlatanowicz/wl/redis-serializer #38

Workflow file for this run

name: tests
on:
push:
pull_request:
workflow_dispatch:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Cache python packages
uses: actions/cache@v3
env:
cache-name: test-python-packages
with:
path: '~/.local/**/site-packages'
key: ${{ runner.os }}-${{ matrix.python }}-${{ env.cache-name }}-${{ hashFiles('requirements/**/*.txt') }}
restore-keys: |
${{ runner.os }}-${{ matrix.python }}-${{ env.cache-name }}-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/base.txt --user
pip install -r requirements/tests.txt --user
pip install -r requirements/lint.txt --user
- name: Check with black
run: |
python -m black --check themule
- name: Check with isort
run: |
python -m isort --check-only themule