Skip to content

[pre-commit.ci] pre-commit autoupdate #9

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #9

Workflow file for this run

name: Python package
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
FORCE_COLOR: "1"
BIND_ADDR: "127.0.0.1"
HYPOTHESIS_PROFILE: "ci"
jobs:
build:
name: Build and inspect package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: hynek/build-and-inspect-python-package@v1
test:
runs-on: ubuntu-latest
needs: build
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.3.1
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install dependencies
run: |
poetry install --no-interaction --with test
- name: Test with pytest
run: |
poetry run pytest \
--event-loop=asyncio \
--bind-addr=$BIND_ADDR \
--hypothesis-profile $HYPOTHESIS_PROFILE