Update python-app.yml

This commit is contained in:
Evil0ctal 2022-01-02 05:02:04 -08:00 committed by GitHub
parent 1827eff1e1
commit c5ebe5c8d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,19 +11,14 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
# in this example, there is a newer version already installed, 3.7.7, so the older version will be downloaded
python-version: ['3.9.9', '3.9']
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up Python 3.9.9 - uses: actions/setup-python@v2
uses: actions/setup-python@v2
with: with:
python-version: "3.9.9" python-version: ${{ matrix.python-version }}
- name: Install dependencies - run: sudo python TikTok_ZH.py
run: |
sudo python -m pip install --upgrade pip
sudo pip install flake8 pytest
sudo pip install -r requirements.txt
- name: run server
run: sudo python3.9.9 TikTok_ZH.py