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 e03c414
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ jobs:
cache-dependency-path: "**/requirements_dev.txt"
- name: Run tests
run: |
pip install -r requirements_dev.txt
export SETTINGS_DIR=.
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
4 changes: 2 additions & 2 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Ready to contribute? Here's how to set up `apphelpers` for local development.

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

4. Create a branch for local development::

Expand Down Expand Up @@ -119,7 +119,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 e03c414

Please sign in to comment.