Skip to content

Hotfix github actions CI adding secrets #33

Hotfix github actions CI adding secrets

Hotfix github actions CI adding secrets #33

Workflow file for this run

name: Django CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: curl -sSL https://install.python-poetry.org | python -
- name: Set Environment Variables
env:
SECRET_KEY: ${{ secrets.SECRET_KEY }}
run: |
echo "SECRET_KEY=${SECRET_KEY}" > .env
echo "${{ secrets.SECRET_KEY }}"
- name: Install Dependencies
run: poetry install
- name: Run TestsS
run: poetry run python manage.py test