Skip to content

Commit

Permalink
test added
Browse files Browse the repository at this point in the history
  • Loading branch information
innovatorved committed Nov 8, 2023
1 parent 252d53d commit 633bfa7
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
sync-to-hub:
runs-on: ubuntu-latest
runs-on: ubuntu-laest
steps:
- uses: actions/checkout@v3
with:
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Test
on:
push:
workflow_dispatch:

jobs:
test-api:
runs-on: ubuntu-laest
steps:
- uses: actions/checkout@v3

- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest
- name: Test with pytest
env:
ACCESS_TOKEN_EXPIRE_MINUTES: ${{ secrets.ACCESS_TOKEN_EXPIRE_MINUTES }}
ALGORITHM: ${{ secrets.ALGORITHM }}
SERVER_NAME: ${{ secrets.SERVER_NAME }}
SERVER_HOST: ${{ secrets.SERVER_HOST }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
POSTGRES_DATABASE_URL: ${{ secrets.POSTGRES_DATABASE_URL }}
run: pytest

0 comments on commit 633bfa7

Please sign in to comment.