Skip to content

Commit

Permalink
GH CI fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sayanarijit committed Dec 19, 2023
1 parent 217c960 commit 6dc3d99
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ jobs:
cache-dependency-path: "**/requirements_dev.txt"
- name: Run tests
run: |
export SETTINGS_DIR=.
pip install -r requirements_dev.txt
pip install -e .
gunicorn tests.service:__hug_wsgi__ -D
pre-commit run --all-files
nosetests -sxv tests
uvicorn fastapi_tests.service:app --port 5000 &
# pre-commit run --all-files TODO: check what's wrong in CI
pytest tests
pytest fastapi_tests
5 changes: 3 additions & 2 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ Ready to contribute? Here's how to set up `apphelpers` for local development.

$ mkvirtualenv apphelpers
$ cd apphelpers/
$ python setup.py develop
$ pip install -e .
$ pip install -r requirements_dev.txt

4. Create a branch for local development::

Expand Down Expand Up @@ -119,7 +120,7 @@ Tips
To run a subset of tests::


$ python -m unittest tests.test_apphelpers
$ pytest ./tests/test_rest.py

Deploying
---------
Expand Down
1 change: 1 addition & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ types-requests
types-pytz
types-redis
redis
loguru

0 comments on commit 6dc3d99

Please sign in to comment.