Skip to content

changed from pytest to normal manage.py test #5

changed from pytest to normal manage.py test

changed from pytest to normal manage.py test #5

Workflow file for this run

name: Git flow CI
on:
push:
branches:
- develop
- main
- 'feature/*'
- 'release/*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Django Tests
env:
DJANGO_SETTINGS_MODULE: "Videogames_project.settings"
DB_NAME: ${{ secrets.DB_NAME }}
DB_USER: ${{ secrets.DB_USER }}
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
DB_HOST: ${{ secrets.DB_HOST }}
DB_PORT: ${{ secrets.DB_PORT }}
run: |
python manage.py test --verbosity=2
release:
name: Create Release Tag
if: github.ref == 'refs/heads/release/*'
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Create the release tag
env:
GIT_TAG: "v$(date +'%Y.%m.%d.%H%M')"
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git tag $GIT_TAG
git push origin $GIT_TAG