forked from openedx-unsupported/registrar
-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (50 loc) · 1.27 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: Python CI
on:
push:
branches:
- master
pull_request:
branches:
- '**'
jobs:
run_tests:
name: Tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
python-version: ['3.12']
toxenv: [django42]
steps:
- uses: actions/checkout@v3
- name: setup python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Set display to virtual frame buffer
run: export DISPLAY=:99.0
- name: Install dependencies
run: |
pip install -U pip wheel
make requirements
- name: Run Tests
env:
TOXENV: ${{ matrix.toxenv }}
run: make validate
- name: Make Static and Validate Translations
env:
TOXENV: ${{ matrix.toxenv }}
DJANGO_SETTINGS_MODULE: registrar.settings.test
run: |
sudo apt install gettext
make static
make validate_translations
# - name: Run Coverage
# if: matrix.python-version == '3.12' && matrix.toxenv=='django42'
# uses: codecov/codecov-action@v1
# with:
# flags: unittests
# file: ./coverage.xml
# fail_ci_if_error: true
# token: ${{ secrets.CODECOV_TOKEN }}