Skip to content

Fixed usage of variables in workflow file. #4

Fixed usage of variables in workflow file.

Fixed usage of variables in workflow file. #4

Workflow file for this run

name: Django CI
on:
push:
branches: [ "feature/github-action" ]
pull_request:
branches: [ "develop" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
PYTHON_VERSION: 3.10
steps:
- uses: actions/checkout@v3
- name: Install OpenLDAP dependencies
run: sudo apt install libsasl2-dev python3-dev libldap2-dev libssl-dev
- name: Set up Python ${{ PYTHON_VERSION }}

Check failure on line 20 in .github/workflows/django-test.yml

View workflow run for this annotation

GitHub Actions / Django CI

Invalid workflow file

The workflow is not valid. .github/workflows/django-test.yml (Line: 20, Col: 13): Unrecognized named-value: 'PYTHON_VERSION'. Located at position 1 within expression: PYTHON_VERSION .github/workflows/django-test.yml (Line: 23, Col: 25): Unrecognized named-value: 'PYTHON_VERSION'. Located at position 1 within expression: PYTHON_VERSION
uses: actions/setup-python@v3
with:
python-version: ${{ PYTHON_VERSION }}
- name: Install latest pip
run: python -m pip install --upgrade pip
- name: Install python dependencies
run: pip install -r requirements.txt
- name: Run Tests
run: python manage.py test