-
Notifications
You must be signed in to change notification settings - Fork 18
50 lines (43 loc) · 1.24 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: CI
on:
- push
- pull_request
jobs:
test:
runs-on: ubuntu-latest
container: texlive/texlive:TL2020-historic
steps:
- name: Clone the reference repository
uses: actions/checkout@v2
- name: Setup pip
run: |
apt update
apt install wget python3-distutils -y
wget https://bootstrap.pypa.io/get-pip.py
python3 get-pip.py
- name: Install dependencies
run: |
pip install --no-cache-dir -U -r requirements-dev.txt | cat
pip install --no-cache-dir -U -r requirements-extra.txt | cat
pip install -e .
pip install pytest pytest-cov coveralls
- name: Test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.python-version }}
COVERALLS_PARALLEL: true
run: |
pytest -v --cov=probml_utils --cov-report term-missing
coveralls --service=github
coveralls:
name: Finish coverage
needs: test
runs-on: ubuntu-latest
container: python:3-slim
steps:
- name: Finished
run: |
pip3 install --upgrade coveralls
coveralls --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}