Skip to content

Commit

Permalink
Fix CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
ManiMozaffar committed Apr 28, 2024
1 parent 1c3d6cb commit 7e3fac2
Show file tree
Hide file tree
Showing 3 changed files with 297 additions and 24 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ jobs:
with:
node-version: 18

- run: pip install -r src/python-fastui/requirements/all.txt
- run: pip install src/python-fastui
- run: pip install pdm==2.12.4

- run: make install

- run: make lint

- run: npm install

Expand Down Expand Up @@ -69,13 +72,13 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- run: pip install -r src/python-fastui/requirements/test.txt
- run: pip install -r src/python-fastui/requirements/pyproject.txt
- run: pip install -e src/python-fastui
- run: pip install pdm==2.12.4 coverage==7.4.1

- run: make install

- run: coverage run -m pytest src
# display coverage and fail if it's below 80%, which shouldn't happen
- run: coverage report --fail-under=80
- run: make testcov
# display coverage and fail if it's below 75%, which shouldn't happen
- run: coverage report --fail-under=75

# test demo on 3.11 and 3.12, these tests are intentionally omitted from coverage
- if: matrix.python-version == '3.11' || matrix.python-version == '3.12'
Expand Down
Loading

0 comments on commit 7e3fac2

Please sign in to comment.