-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(backend): add workflow for pull request of backend
- Loading branch information
1 parent
23f43fe
commit 4a769fd
Showing
2 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: pr-test-backend | ||
run-name: ${{ github.actor }} is running backend tests | ||
on: | ||
push: | ||
branches: [ add_pr_test_backend ] | ||
pull_request: | ||
branches: [ main ] | ||
paths: | ||
- 'backend/**' | ||
jobs: | ||
run_tests: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.8' | ||
cache: 'pip' # caching pip dependencies | ||
- uses: shogo82148/actions-setup-redis@v1 | ||
with: | ||
redis-version: "6.x" | ||
- name: Install dependencies | ||
run: pip install -r backend/requirements.txt | ||
- name: Run tests | ||
run: | | ||
cd backend | ||
PYTHONPATH=. python3 tests/test_user.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,4 +42,5 @@ redis | |
fast_pytorch_kmeans | ||
concurrent-log-handler | ||
kubernetes | ||
gunicorn | ||
gunicorn | ||
learnware |