Added handling for cases where a start time is not present for an eve… #224
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |