GNOME-Nepal / site-server

Backend server for GNOME Nepal
MIT License
6 stars 7 forks source link

GIthub workflow and updates #11

Closed n1rjal closed 1 month ago

n1rjal commented 1 month ago

Added support for workflow(s)

I have added two workflow(s) for this repsitory

For every pull request,

If the file is runnable or not is checked, here is an example of preview here. bugged code pushed for PR workflow

Whikst a successful workflow checks will be like this Code pushed for PR workflow, which you can merge

  1. Linting issues will be checked: For unused variables, error, etc. The linting is done using flake8 and black

  2. Basic django check will be performed

    python3 manage.py check

    For anything that may break the server from ever starting

    • like missing symbols import
    • basic indentation error, etc

Error case example

For every commit to push to main

The container image will be created and pushed to github container repository(GHCR) @utsavdotdev we will need to use organization or your's github personal access token (classic) with following permissions

after you get this done, you will need to put this in this repository's github actions secret as CR_PAT. This is needed to push the repository to GCHR server.

utsavdotdev commented 1 month ago

@n1rjal , As mentioned personal access token has been configured and set as secret in GitHub action.