-
Notifications
You must be signed in to change notification settings - Fork 5
58 lines (50 loc) · 1.62 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Unit Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
env:
DIRECTORY_USERNAME: ${{ secrets.DIRECTORY_USERNAME }}
DIRECTORY_WEB_SERVICE: ${{ secrets.DIRECTORY_WEB_SERVICE }}
DIRECTORY_PASSWORD: ${{ secrets.DIRECTORY_PASSWORD }}
MARKLOGIC_LDR_USER: ${{ secrets.MARKLOGIC_LDR_USER }}
MARKLOGIC_LDR_PASSWORD: ${{ secrets.MARKLOGIC_LDR_PASSWORD }}
MARKLOGIC_LDR_URL: ${{ secrets.MARKLOGIC_LDR_URL }}
SPARQL_ROOT: ${{ secrets.SPARQL_ROOT }}
OWNCLOUD_USERNAME: ${{ secrets.OWNCLOUD_USERNAME }}
OWNCLOUD_PASSWORD: ${{ secrets.OWNCLOUD_PASSWORD }}
OWNCLOUD_WEB_SERVICE: ${{ secrets.OWNCLOUD_WEB_SERVICE }}
GITHUB: ${{ secrets.GITHUB }}
steps:
- name: Configure sysctl limits
run: |
sudo swapoff -a
sudo sysctl -w vm.swappiness=1
sudo sysctl -w fs.file-max=262144
sudo sysctl -w vm.max_map_count=262144
- uses: elastic/elastic-github-actions/elasticsearch@master
with:
stack-version: 7.17.13
- uses: actions/checkout@v3
- name: Start Redis
uses: supercharge/[email protected]
with:
redis-version: 6
- name: Set up Python '3.10'
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-dev.txt
- run: |
mkdir -p media/documents
- name: Run tests
run: |
./manage.py test --parallel --keepdb