Skip to content

Commit

Permalink
Run npm install and sass compile in Github actions
Browse files Browse the repository at this point in the history
Should resolve issue #68
  • Loading branch information
Uular committed Dec 8, 2022
1 parent 965f865 commit 8dba4d6
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ jobs:
max-parallel: 4
matrix:
python-version: [3.9]
node-version: [16]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install pipenv
run: |
python -m pip install --upgrade pipenv wheel
Expand All @@ -32,10 +32,22 @@ jobs:
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }}

- name: Install Dependencies
- name: Install Python Dependencies
run: |
pipenv install --deploy --dev
- name: Run Tests
- name: Set up Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Install NPM Dependencies
run: npm ci

- name: Run Python Tests
run: |
pipenv run test
- name: Compile SASS
run: |
python manage.py compilescss --traceback

0 comments on commit 8dba4d6

Please sign in to comment.