build(project): remove redundant docker environments, update global c… #180
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: FandomHub CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 4 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11.7' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements/local.txt | |
- name: Lint with flake8 | |
run: | | |
pip install flake8 | |
flake8 --config .flake8 | |
# - name: Coverage report | |
# run: | | |
# pip install coverage | |
# coverage run manage.py test | |
# coverage report | |
- name: Django testing | |
run: | | |
python manage.py test | |
env: | |
SECRET_KEY: ${{ secrets.SECRET_KEY }} | |
ADMIN_NAME: ${{ secrets.ADMIN_NAME }} | |
ADMIN_EMAIL: ${{ secrets.ADMIN_EMAIL }} |