Skip to content

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

[pre-commit.ci] pre-commit autoupdate

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

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest # service containers only available on Linux
strategy:
matrix:
python-version: [3.9, '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: pyproject.toml
- uses: elastic/elastic-github-actions/elasticsearch@master
with:
stack-version: 8.6.2
security-enabled: false
- run: pip install .[test]
- env:
ELASTICSEARCH_URL: http://localhost:9200
run: coverage run --source=ocdsindex -m pytest -W error
- uses: coverallsapp/github-action@v2