-
Notifications
You must be signed in to change notification settings - Fork 11
37 lines (35 loc) · 1.06 KB
/
test.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
name: Test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.11']
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements_dev.txt') }}-${{ matrix.python-version }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install requirements_dev.txt
run: pip install -r requirements_dev.txt
- name: Install Ubuntu Translation Libraries
run: sudo apt install gettext
- name: Test IATI
run: py.test -n 2 cove_iati --cov-append --cov
- name: Migrate Database
run: python manage.py migrate
- name: Compile Messages
run: python manage.py compilemessages
- name: Report to coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: coveralls --service=github