Skip to content

Commit

Permalink
dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasmohrin committed Jan 13, 2025
1 parent d965de3 commit e12b04b
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,27 +98,29 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true
path: main
- uses: ./.github/setup_evap
with:
shell: ""
start-db: true
working_directory: main

- name: Build wheel
run: nix run .#build-dist
working_directory: main

- uses: actions/checkout@v4
with:
repository: e-valuation/evap-deployment
ref: work
path: deployment
- run: cd deployment

- uses: actions/setup-python@v5
with:
python-version: '3.10'

- name: Install wheel
run: bash -c 'pip install ../dist/*.whl'
run: pip install main/dist/*.whl

- name: GitHub actions has wrong file ownership here, the checkout actions has a problem here (see their 1049)
run: |
Expand All @@ -127,18 +129,21 @@ jobs:
- name: Load test data
run: |
python manage.py migrate
python manage.py loaddata test_data
python -m evap migrate
python -m evap loaddata test_data
working_directory: deployment
- name: Backup database
run: deployment/update_production.sh backup.json
env:
EVAP_OVERRIDE_BACKUP_FILENAME: true
EVAP_SKIP_UPDATE: true
EVAP_SKIP_APACHE_STEPS: true
working_directory: deployment
- name: Reload backup
run: echo "yy" | deployment/load_production_backup.sh backup.json
env:
EVAP_SKIP_APACHE_STEPS: true
working_directory: deployment

compile_scss:
runs-on: ubuntu-22.04
Expand Down

0 comments on commit e12b04b

Please sign in to comment.