1010 runs-on : ubuntu-latest
1111 strategy :
1212 matrix :
13- python-version : [3.8 ]
13+ python-version : [3.9 ]
1414
1515 steps :
1616 - uses : actions/checkout@v2
@@ -42,17 +42,18 @@ jobs:
4242
4343 - name : Create Virtualenv
4444 run : |
45- virtualenv pyconweb2022- zappa
45+ virtualenv zappa-env
4646
4747 # - name: Activate Virtualenv
4848 # run: |
49- # source ./pyconweb2022- zappa/bin/activate
49+ # source ./zappa-env /bin/activate
5050
5151 - name : Install dependencies
5252 run : |
53- source ./pyconweb2022- zappa/bin/activate
53+ source ./zappa-env /bin/activate
5454 python -m pip install --upgrade pip
5555 pip install pytest
56+ pip install zappa
5657 if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
5758
5859 # Pull request dose not get the gitub action secrets
@@ -65,18 +66,18 @@ jobs:
6566
6667 - name : update pyconkr-secretes
6768 run : |
68- ./update_secrets.sh
69+ chmod 775 ./update_secrets.sh
70+ ./update_secrets.sh
6971
7072 - name : Test with Django Test
7173 run : |
72- source ./pyconweb2022-zappa/bin/activate
73- cd pyconweb2022
74+ source ./zappa-env/bin/activate
7475 python manage.py test
7576
76- - name : Test with pytest
77- run : |
78- source ./pyconweb2022- zappa/bin/activate
79- pytest pyconweb2022
77+ # - name: Test with pytest
78+ # run: |
79+ # source ./zappa-env /bin/activate
80+ # pytest pyconweb2022
8081
8182 - name : Configure AWS Credentials
8283 uses : aws-actions/configure-aws-credentials@v1
9091 AWS_ACCESS_KEY_ID : ${{ secrets.PYCON_DEV_2021_AWS_KEY }}
9192 AWS_SECRET_ACCESS_KEY : ${{ secrets.PYCON_DEV_2021_AWS_SECRET }}
9293 run : |
93- source ./pyconweb2022-zappa/bin/activate
94- cd pyconweb2022
95- zappa update dev
94+ source ./zappa-env/bin/activate
95+ zappa update dev2023
9696# zappa manage dev collectstatic
0 commit comments