Skip to content

Commit b7387b2

Browse files
authored
Merge pull request #76 from darjeeling/fix_deployment
disable black on deployment
2 parents 4709813 + 9150108 commit b7387b2

File tree

2 files changed

+34
-36
lines changed

2 files changed

+34
-36
lines changed

.github/workflows/deploy_on_dev.yml

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@v2
18-
- uses: psf/black@stable
19-
with:
20-
options: "--check --verbose"
18+
#- uses: psf/black@stable
19+
# with:
20+
# options: "--check --verbose"
2121

2222
- name: Set up Python ${{ matrix.python-version }}
2323
uses: actions/setup-python@v2
@@ -62,23 +62,23 @@ jobs:
6262
- name: Setup Auth for Private Repo
6363
uses: webfactory/[email protected]
6464
with:
65-
ssh-private-key: ${{ secrets.SSH_SECRET_GOLONY }}
65+
ssh-private-key: ${{ secrets.SSH_SECRET_GOLONY }}
6666
# ssh-private-key: ${{ secrets.GH_PYCONKR_SECRETS }}
6767

6868
- name: update pyconkr-secretes
6969
run: |
70-
chmod 775 ./update_secrets.sh
71-
./update_secrets.sh
72-
73-
# - name: Test with Django Test
74-
# run: |
75-
# source ./zappa-env/bin/activate
76-
# python manage.py test
77-
#
78-
# - name: Test with pytest
79-
# run: |
80-
# source ./zappa-env/bin/activate
81-
# pytest .
70+
chmod 775 ./update_secrets.sh
71+
./update_secrets.sh
72+
73+
# - name: Test with Django Test
74+
# run: |
75+
# source ./zappa-env/bin/activate
76+
# python manage.py test
77+
#
78+
# - name: Test with pytest
79+
# run: |
80+
# source ./zappa-env/bin/activate
81+
# pytest .
8282

8383
- name: Configure AWS Credentials
8484
uses: aws-actions/configure-aws-credentials@v1
@@ -94,8 +94,7 @@ jobs:
9494
run: |
9595
source ./zappa-env/bin/activate
9696
zappa update dev2023
97-
# zappa manage dev2023 "collectstatic --no-input"
98-
97+
# zappa manage dev2023 "collectstatic --no-input"
9998
- name: Collect Static Files to S3
10099
env:
101100
AWS_ACCESS_KEY_ID: ${{ secrets.PYCON_DEV_2023_AWS_KEY }}

.github/workflows/deploy_on_prod.yml

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@v2
18-
- uses: psf/black@stable
19-
with:
20-
options: "--check --verbose"
18+
#- uses: psf/black@stable
19+
# with:
20+
# options: "--check --verbose"
2121

2222
- name: Set up Python ${{ matrix.python-version }}
2323
uses: actions/setup-python@v2
@@ -62,23 +62,23 @@ jobs:
6262
- name: Setup Auth for Private Repo
6363
uses: webfactory/[email protected]
6464
with:
65-
ssh-private-key: ${{ secrets.SSH_SECRET_GOLONY }}
65+
ssh-private-key: ${{ secrets.SSH_SECRET_GOLONY }}
6666
# ssh-private-key: ${{ secrets.GH_PYCONKR_SECRETS }}
6767

6868
- name: update pyconkr-secretes
6969
run: |
70-
chmod 775 ./update_secrets.sh
71-
./update_secrets.sh
72-
73-
# - name: Test with Django Test
74-
# run: |
75-
# source ./zappa-env/bin/activate
76-
# python manage.py test
77-
#
78-
# - name: Test with pytest
79-
# run: |
80-
# source ./zappa-env/bin/activate
81-
# pytest .
70+
chmod 775 ./update_secrets.sh
71+
./update_secrets.sh
72+
73+
# - name: Test with Django Test
74+
# run: |
75+
# source ./zappa-env/bin/activate
76+
# python manage.py test
77+
#
78+
# - name: Test with pytest
79+
# run: |
80+
# source ./zappa-env/bin/activate
81+
# pytest .
8282

8383
- name: Configure AWS Credentials
8484
uses: aws-actions/configure-aws-credentials@v1
@@ -94,8 +94,7 @@ jobs:
9494
run: |
9595
source ./zappa-env/bin/activate
9696
zappa update prod2023
97-
# zappa manage prod2023 "collectstatic --no-input"
98-
97+
# zappa manage prod2023 "collectstatic --no-input"
9998
- name: Collect Static Files to S3
10099
env:
101100
AWS_ACCESS_KEY_ID: ${{ secrets.PYCON_DEV_2023_AWS_KEY }}

0 commit comments

Comments
 (0)