-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (27 loc) · 923 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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