Skip to content

Commit

Permalink
Update GitHub action stuff
Browse files Browse the repository at this point in the history
All kinds of jacked up. Well, not that bad really.
  • Loading branch information
trey committed Jul 12, 2023
1 parent a6e3575 commit f08c08d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/blaze-django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ jobs:
DEFAULT_FROM_EMAIL: ${{ secrets.DEFAULT_FROM_EMAIL }}
SERVER_EMAIL: ${{ secrets.SERVER_EMAIL }}
EMAIL_BACKEND: ${{ vars.EMAIL_BACKEND }}
EMAIL_HOST: 'example.com'
EMAIL_PORT: '587'
EMAIL_HOST_USER: 'test'
EMAIL_HOST_PASSWORD: 'fakepassword'
EMAIL_HOST: ${{ secrets.EMAIL_HOST }}
EMAIL_PORT: ${{ secrets.EMAIL_PORT }}
EMAIL_HOST_USER: ${{ secrets.EMAIL_HOST_USER }}
EMAIL_HOST_PASSWORD: ${{ secrets.EMAIL_HOST_PASSWORD }}
EMAIL_USE_TLS: '1'
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
Expand Down
24 changes: 16 additions & 8 deletions .github/workflows/blaze-playwright.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
name: Playwright Tests for App Built with Starter Kit
on: [push, pull_request]
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
DEBUG: ${{ secrets.DEBUG }}
ALLOWED_HOSTS: ${{ secrets.ALLOWED_HOSTS }}
CSRF_TRUSTED_ORIGINS: ${{ secrets.CSRF_TRUSTED_ORIGINS }}
DEBUG: 0
ALLOWED_HOSTS: '*'
CSRF_TRUSTED_ORIGINS: ${{ vars.CSRF_TRUSTED_ORIGINS }}
EMAIL_BACKEND: ${{ secrets.EMAIL_BACKEND }}
EMAIL_HOST: ${{ secrets.EMAIL_HOST }}
EMAIL_PORT: ${{ secrets.EMAIL_PORT }}
EMAIL_HOST_USER: ${{ secrets.EMAIL_HOST_USER }}
EMAIL_HOST_PASSWORD: ${{ secrets.EMAIL_HOST_PASSWORD }}
EMAIL_USE_TLS: ${{ secrets.EMAIL_USE_TLS }}
EMAIL_USE_TLS: 1
PLAYWRIGHT_USERNAME: ${{ secrets.PLAYWRIGHT_USERNAME }}
PLAYWRIGHT_PASSWORD: ${{ secrets.PLAYWRIGHT_PASSWORD }}
jobs:
Expand All @@ -24,11 +25,18 @@ jobs:
node-version: 18
- name: Install Django bits
run: |
python3 -m venv --prompt . venv
venv/bin/pip install -U pip setuptools wheel
venv/bin/python -m pip install -r requirements/requirements.txt
venv/bin/python manage.py migrate --noinput
mkdir test_project
cd test_project
python3 -m venv --prompt . .venv
.venv/bin/pip install -U pip setuptools wheel
.venv/bin/python -m pip install pip-tools Django
.venv/bin/django-admin startproject --exclude=.git,__pycache__,.env --template=https://github.com/piepworks/django-starter/archive/${BRANCH_NAME}.zip test_project .
.venv/bin/pip-compile --resolver=backtracking requirements/requirements.in
.venv/bin/python -m pip install -r requirements/requirements.txt
.venv/bin/python manage.py makemigrations
.venv/bin/python manage.py migrate --noinput
venv/bin/python manage.py loaddata e2e/django-fixtures.json
.venv/bin/python manage.py collectstatic --noinput
npm install
npm run build
- name: Install dependencies
Expand Down

0 comments on commit f08c08d

Please sign in to comment.