WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Merge pull request #30 from trustpilot/SP-148-gha #7

Merge pull request #30 from trustpilot/SP-148-gha

Merge pull request #30 from trustpilot/SP-148-gha #7

Workflow file for this run

name: Build and release
'on':
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- name: Checkout the repo
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install poetry
run: |
pip install --upgrade pip
pip install poetry
python -V
pip -V
poetry -V
poetry config virtualenvs.create false
shell: bash
- name: poetry install
run: poetry install --verbose
shell: bash
- name: Lint
run: poetry run black --check .
shell: bash
- name: Test
run: poetry run pytest -vvv tests
shell: bash