forked from openedx/edx-enterprise
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 907 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
34
35
36
37
38
name: CI
on:
push:
branches: [master]
pull_request:
jobs:
run_tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.8']
toxenv: [quality, docs, django32-celery50, django32-pii-annotations]
env:
RUNJSHINT: true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
architecture: x64
- run: pip install -r requirements/ci.txt
- name: Run tox
env:
TOXENV: ${{ matrix.toxenv }}
run: tox
- name: Run code coverage
if: matrix.toxenv=='django32-celery50' # Only run this once as part of tests
run: codecov
- name: Run jshint
if: matrix.toxenv=='django32-celery50' # Only run this once as part of tests
continue-on-error: true
run: |
npm i
make jshint