Skip to content

modified gitflow workflow file tell django where to find the configur… #2

modified gitflow workflow file tell django where to find the configur…

modified gitflow workflow file tell django where to find the configur… #2

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 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 the tests with coverage
env:
DJANGO_SETTINGS_MODULE: "Videogames_project.settings"
run: |
coverage run -m pytest -v -s
- name: Generate Coverage Report
run: |
coverage report -m
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