Update python-app.yml

This commit is contained in:
암냥 2025-02-02 14:33:29 +09:00 committed by GitHub
commit a75201526e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -36,37 +36,25 @@ jobs:
${{ runner.os }}-pip-
# Cache cookie.json
- name: Cache app/temp/auth
- name: Cache cookie.json
uses: actions/cache@v3
with:
path: /home/runner/work/today.isangjeong/today.isangjeong/app/temp/auth
path: /home/runner/work/today.isangjeong/today.isangjeong/app/temp/auth/cookies.json
key: ${{ runner.os }}-cookie-${{ hashFiles('/home/runner/work/today.isangjeong/today.isangjeong/app/temp/auth/cookies.json') }}
restore-keys: |
${{ runner.os }}-cookie-
- name: Install dependencies
- name: Install dependencies (only if requirements.txt changed)
run: |
pwd
python -m pip install --upgrade pip
if [ -f requirements.txt ] && ! pip freeze | diff - requirements.txt > /dev/null; then
pip install -r requirements.txt
else
echo "No changes in requirements.txt, skipping installation"
fi
pip install -r requirements.txt || echo "No changes in requirements.txt, skipping installation"
- name: Set Permission
- name: Set Permissions
run: |
cd app
chmod +x run.sh
chmod +x gen-config.sh
chmod +x app/run.sh app/gen-config.sh
- name: Generate Config
run: |
cd app
pwd
ls -al
./gen-config.sh
cat config.json
- name: Add SSH private key
run: |
@ -79,9 +67,7 @@ jobs:
ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_ed25519 -D 9999 -f -N imnyang@imnya.ng -p5322
echo "SOCKS proxy started"
- name: Run
- name: Run application
run: |
cd app
pwd
ls -al
./run.sh