wip #668
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: Test | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
DATA_SUBMISSION_ENABLED: "true" | |
REGISTRY_PUBLISHERS_URL: ${{secrets.REGISTRY_PUBLISHERS_URL}} | |
REGISTRY_PUBLISHERS_USER: ${{secrets.REGISTRY_PUBLISHERS_USER}} | |
REGISTRY_PUBLISHERS_PASS: ${{secrets.REGISTRY_PUBLISHERS_PASS}} | |
strategy: | |
matrix: | |
# Python 3.8 is used by the live cove and datastore servers | |
python-version: [ '3.8'] | |
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_cove_dev.txt | |
run: pip install -r requirements_cove_dev.txt | |
- name: Install Ubuntu Translation Libraries | |
run: sudo apt install gettext | |
- name: Test 360 | |
run: cd cove; DJANGO_SETTINGS_MODULE=cove_project.settings_test py.test -vv -n 2 --cov-append --cov --cov-report= | |
- name: Migrate Database | |
run: DJANGO_SETTINGS_MODULE=cove_project.settings_test python ./cove/manage.py migrate | |
- name: Compile Messages | |
run: DJANGO_SETTINGS_MODULE=cove_project.settings_test python ./cove/manage.py compilemessages |