generated from leynier/python-template
-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (33 loc) · 930 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
28
29
30
31
32
33
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
CI:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Set up Poetry 2.1.0
uses: abatilo/[email protected]
with:
poetry-version: 1.1.2
- name: Run tests
run: make tests
- name: Upload coverage
uses: codecov/codecov-action@v1
# with:
# token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
# - name: Report results to DeepSource
# run: |
# curl https://deepsource.io/cli | sh
# ./bin/deepsource report --analyzer test-coverage --key python --value-file ./coverage.xml
# env:
# DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }}