Skip to content

Commit

Permalink
Remove repository-specific restriction and Git Clone steps
Browse files Browse the repository at this point in the history
GitHub workflow restrictions specific to 'yandex-praktikum/hw05_final' repository and Git Clone action were removed, allowing the workflow to run on any repository without duplicating the codebase. The Secret Key was also changed to enhance security.
  • Loading branch information
aleksandr-miheichev committed Oct 1, 2023
1 parent 3cb199c commit e0c1426
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.repository == 'yandex-praktikum/hw05_final' }}
strategy:
matrix:
python-version: [ 3.7, 3.8, 3.9 ]
Expand All @@ -21,12 +20,6 @@ jobs:
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Git Clone Action
uses: actions/checkout@v4
with:
repository: ${{ secrets.repository }}
ssh-key: ${{ secrets.ACCESS_TOKEN }}
path: yatube/
- name: Lint with flake8 author
run: |
# stop the build if there are Python syntax errors or undefined names
Expand All @@ -41,7 +34,7 @@ jobs:
flake8 tests --count --exit-zero --max-complexity=10 --max-line-length=79 --statistics
- name: Test with pytest
env:
SECRET_KEY: "5UP3R-53CR3T-K3Y-FR0M-TurboKach"
SECRET_KEY: "django-insecure-qkz870%_f#u!13#k7jfb21d2=(0jg5l55=up0)5uo4m84ld)%2"
DJANGO_SETTINGS_MODULE: yatube.settings
DEBUG: 1
ALLOWED_HOSTS: "*"
Expand Down

0 comments on commit e0c1426

Please sign in to comment.