-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(users): fix failing tests (#837)
- Loading branch information
1 parent
18f0519
commit cc13285
Showing
14 changed files
with
252 additions
and
244 deletions.
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,40 @@ | ||
name: users service checks and tests | ||
|
||
on: | ||
push: | ||
paths: | ||
- users/** | ||
- .github/worlflows/users.yml | ||
pull_request: | ||
paths: | ||
- users/** | ||
- .github/worlflows/users.yml | ||
|
||
jobs: | ||
users-linters-and-tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [ "3.8.15" ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
working-directory: ./users | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install poetry>=1.1.13 | ||
poetry install --no-root | ||
poetry add ../lib/tenants | ||
- name: Run linters and checkers [flake8 -> isort -> black] | ||
working-directory: ./users | ||
run: | | ||
poetry run flake8 --extend-ignore=E203 users/ | ||
poetry run isort --profile=black --line-length=79 --check-only users/ | ||
poetry run black --check --line-length=79 users/ | ||
- name: Run tests | ||
working-directory: ./users | ||
run: | | ||
poetry run pytest tests/ |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
fastapi>=0.68.0 | ||
httpx | ||
PyJWT[crypto]==2.3.0 | ||
PyJWT[crypto]>=2.3.0 |
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
Oops, something went wrong.