-
Notifications
You must be signed in to change notification settings - Fork 12
46 lines (39 loc) · 1.07 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
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
ci:
name: "Test and Lint"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: [3.7, 3.8, 3.9]
include:
- python: "3.10.0-beta.4"
experimental: true
steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r dev-requirements.txt
- name: Lint Code
run: .bin/lint-code
# - name: Test with pytest
# run: pytest --force-sugar
# - name: Publish Code Coverage
# uses: paambaati/[email protected]
# env:
# CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
# with:
# coverageCommand: coverage xml
# coverageLocations: ${{github.workspace}}/coverage.xml:cobertura