chore: raise from e instead of putting e in exception message #149
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 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 |