-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.07 KB
/
main.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
name: Test clutchless
on:
push:
branches: [ develop, master ]
pull_request:
branches: [ develop, master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: 1.0.10
- name: Install with poetry
run: |
poetry config --local virtualenvs.in-project true
poetry install
- name: Run pytest for unit tests
run: |
source .venv/bin/activate
coverage run --source=clutchless -m pytest $GITHUB_WORKSPACE/tests/unit
- name: Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
run: |
source .venv/bin/activate
coveralls
# - name: Coveralls
# uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.COVERALLS_TOKEN }}
# path-to-lcov: ./.coverage