fixed tests, added to deploy
This commit is contained in:
parent
02854265c8
commit
04547edfe7
2 changed files with 47 additions and 24 deletions
23
.github/workflows/main.yml
vendored
23
.github/workflows/main.yml
vendored
|
|
@ -6,8 +6,7 @@ on:
|
|||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: self-hosted
|
||||
# runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-latest
|
||||
name: Deploy
|
||||
environment: Cloudflare Worker
|
||||
steps:
|
||||
|
|
@ -20,3 +19,23 @@ jobs:
|
|||
AUTH_KEY
|
||||
env:
|
||||
AUTH_KEY: ${{ secrets.AUTH_KEY }}
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
name: Test
|
||||
environment: Cloudflare Worker
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.x'
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install requests
|
||||
- name: Test
|
||||
env:
|
||||
HOST: ${{ vars.DEPLOY_HOST }}
|
||||
AUTH_KEY: ${{ secrets.AUTH_KEY }}
|
||||
run:
|
||||
python test.py
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue