Skip to content

Use single quotes for attriabutes to support hx-vals json data #16

Use single quotes for attriabutes to support hx-vals json data

Use single quotes for attriabutes to support hx-vals json data #16

Workflow file for this run

name: test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: "1.3.1"
virtualenvs-create: true
virtualenvs-in-project: true
- name: Set up cache
uses: actions/cache@v1
with:
path: .venv
key: cached-venv-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}
- name: Install dependencies
run: |
poetry install
- name: Update pip to latest version
run: |
poetry run python -m pip install -U pip
- name: Run code quality checks
run: |
poetry check
poetry run pip check
poetry run ruff check .
poetry run mypy .
poetry run safety check --full-report
- name: Run pytest
run: |
poetry run pytest
- name: Upload coverage reports to Codecov
if: matrix.python-version == 3.12
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: thomasborgen/hypermedia
file: ./coverage.xml