Skip to content

Ensure compatibility with python 3.10 and above #71

Ensure compatibility with python 3.10 and above

Ensure compatibility with python 3.10 and above #71

Workflow file for this run

name: build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
if: steps.cache.outputs.cache-hit != 'true'
run: |
python -m pip install --upgrade pip
curl -sSL https://install.python-poetry.org | python3 - --version 1.2.0a2
poetry config virtualenvs.create true
poetry config virtualenvs.in-project true
poetry plugin add poetry-version-plugin
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v2
with:
path: .venv
key: venv-${{ runner.os }}-${{ matrix.python-version }}-v2-${{ hashFiles('**/poetry.lock') }}
- name: Install Dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install
- name: Build
run: poetry build
- name: Test with pytest
run: poetry run python -m pytest