-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (41 loc) · 1.13 KB
/
pytest.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: pytest
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install prerequisites
run: |
sudo apt update
sudo apt install -y default-jre
python -m pip install --upgrade pip
- name: Build queryparser
run: |
wget http://www.antlr.org/download/antlr-4.13.1-complete.jar
make
pip install -I -e .[test]
pip install pytest-cov
pip install coveralls
- name: Run Tests
run: |
pytest lib/ --cov=queryparser
coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
coveralls:
name: Indicate completion to coveralls
needs: build
runs-on: ubuntu-latest
container: python:3-slim
steps:
- name: Run Coveralls finish
run: |
pip install coveralls
coveralls --service=github --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}