Skip to content

Commit

Permalink
Fix bad action syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
samamorgan committed Oct 18, 2022
1 parent 2b62684 commit 98a4e6f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/project_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:
runs-on: ubuntu-latest
env:
DATABASE_URL: "psql://postgres:postgres@localhost/postgres"
DJANGO_SETTINGS_MODULE: "sampleapp.config.settings.test"
DJANGO_SECRET_KEY: "!!!! Change me !!!!"

steps:
Expand Down Expand Up @@ -61,21 +60,21 @@ jobs:
cache-dependency-path: "**/package-lock.json"

- name: Setup Node
- run: |
working-directory: ./sampleapp
run: |
npm install
npm run build
working-directory: ./sampleapp
- name: Install Sample App dependencies
- run: |
working-directory: ./sampleapp
run: |
poetry env use ${{ steps.setup_python.outputs.python-version }}
poetry install --no-interaction --no-root
poetry run playwright install chromium
working-directory: ./sampleapp
- name: Run tests
- run: poetry run coverage run --source='.' -m pytest
working-directory: ./sampleapp
run: poetry run coverage run --source='.' -m pytest

services:
postgres:
Expand Down
13 changes: 7 additions & 6 deletions {{cookiecutter.repo_name}}/.github/workflows/django_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,11 @@ jobs:
node-version: lts/*
cache: "npm"
cache-dependency-path: "**/package-lock.json"
- run: npm install
- run: npm run build

- name: Setup Node
- run: |
npm install
npm run build
- name: Install and configure Poetry
uses: snok/install-poetry@e3dbfd357f4751d4f582d62bc8a71e56c2a7015b # v1.3.2
Expand All @@ -105,16 +108,14 @@ jobs:
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}

- name: Install dependencies
- run: |
run: |
poetry install --no-interaction --no-root
poetry run playwright install chromium
working-directory: ./sampleapp
- name: Run tests
- run: |
run: |
poetry run coverage run --source='.' -m pytest
poetry run ./manage.py collectstatic --noinput
working-directory: ./sampleapp
services:
postgres:
Expand Down

0 comments on commit 98a4e6f

Please sign in to comment.