Skip to content

Commit 1296dca

Browse files
committed
fix: change full code
1 parent fe22e96 commit 1296dca

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

.github/workflows/django.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ jobs:
2020

2121
steps:
2222
- name: Check out the repository
23-
uses: actions/checkout@v4
23+
uses: actions/checkout@v4 # This is an action, so it uses 'uses'
2424

2525
- name: Set up Python ${{ matrix.python-version }}
26-
uses: actions/setup-python@v3
26+
uses: actions/setup-python@v3 # This is an action, so it uses 'uses'
2727
with:
2828
python-version: ${{ matrix.python-version }}
2929

3030
- name: Install OpenSSL
31-
run: sudo apt-get install -y openssl
31+
run: sudo apt-get install -y openssl # This is a command, so it uses 'run'
3232

3333
- name: Generate private and public keys
3434
run: |
@@ -50,7 +50,17 @@ jobs:
5050
echo PUBLIC_KEY_PATH=$(pwd)/security/public_key.pem >> .env
5151
5252
- name: Check if .env has been updated
53-
run: |
54-
cat .env
53+
run: cat .env # This is a command, so it uses 'run'
5554

5655
- name: Clean up keys (Optional)
56+
run: |
57+
rm -rf security
58+
echo "Keys removed after use." # This is a command, so it uses 'run'
59+
60+
- name: Install Dependencies
61+
run: |
62+
python -m pip install --upgrade pip
63+
pip install -r requirements.txt # This is a command, so it uses 'run'
64+
65+
- name: Run Tests
66+
run: python manage.py test # This is a command, so it uses 'run'

0 commit comments

Comments
 (0)