Skip to content

ci: Fix github-actions to github_actions #142

ci: Fix github-actions to github_actions

ci: Fix github-actions to github_actions #142

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.8, 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: setup.cfg
- 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: pytest -W error --cov ocdsindex
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: coveralls --service=github