-
Notifications
You must be signed in to change notification settings - Fork 73
52 lines (44 loc) · 1.19 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
51
52
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- '*'
jobs:
testsuite-linux:
runs-on: ubuntu-18.04
strategy:
fail-fast: false
matrix:
python-version: ['3.6', '3.8']
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
# Fetch all the docker images we need
- name: Build tool images
run: |
make images
docker pull markstory/swiftlint
docker tag markstory/swiftlint swiftlint
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pip install .
cp settings.sample.py settings.py
- name: Run Pytest
run: |
# Setup git so we can test commits.
git config --global user.email lintreview@example.com
git config --global user.name robot
# Run test
pytest -p no:cacheprovider --cov=lintreview
- name: Code Coverage Report
if: success() && matrix.php-version == '7.4' && matrix.db-type == 'mysql'
uses: codecov/codecov-action@v1