diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index 7563d91..1b74343 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -14,6 +14,7 @@ jobs: max-parallel: 4 matrix: python-version: [3.9] + node-version: [16] steps: - uses: actions/checkout@v2 @@ -21,7 +22,6 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - - name: Install pipenv run: | python -m pip install --upgrade pipenv wheel @@ -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 +