Use read replica and missing translation for export to CSV on Django admin #106
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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- nau/*.master | |
jobs: | |
create-virtualenv: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
- uses: syphar/restore-virtualenv@v1 | |
id: cache-virtualenv | |
- uses: syphar/restore-pip-download-cache@v1 | |
if: steps.cache-virtualenv.outputs.cache-hit != 'true' | |
- run: pip install -r requirements/test.txt | |
if: steps.cache-virtualenv.outputs.cache-hit != 'true' | |
- run: pip install -r requirements/translations.txt | |
if: steps.cache-virtualenv.outputs.cache-hit != 'true' | |
test: | |
needs: create-virtualenv | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
- uses: syphar/restore-virtualenv@v1 | |
id: cache-virtualenv | |
- run: make test | |
lint: | |
needs: create-virtualenv | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
- uses: syphar/restore-virtualenv@v1 | |
id: cache-virtualenv | |
- run: make lint | |
check_miss_run_update_translations: | |
needs: create-virtualenv | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
- uses: syphar/restore-virtualenv@v1 | |
id: cache-virtualenv | |
- run: make check_miss_run_update_translations |