Skip to content

Switch to Ruff (#119) #281

Switch to Ruff (#119)

Switch to Ruff (#119) #281

Workflow file for this run

name: build
on:
pull_request:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip
uses: actions/cache@v2
with:
# This path is specific to Ubuntu
path: ~/.cache/pip
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-pip-${{ hashFiles('requirements-dev.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
- name: Run pytest
run: |
pytest --doctest-modules -v -s \
--hypothesis-profile dev \
caliban tests