Skip to content

Commit

Permalink
updating coverage-badge.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Fiona-Waters committed Aug 28, 2023
1 parent 57ae72e commit 48de283
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/coverage-badge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest==6.2.4
pip install pytest-mock==3.6.1
pip install coverage
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install poetry
poetry install --with test
- name: Generate coverage report
run: |
coverage run -m --source=src pytest -v tests/unit_test.py
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ This will install standard requirements as specified in the poetry.lock file. Te

To include test dependencies run: `poetry install --with test`

To include docs dependencies run: `poetry instal --with docs`
To include docs dependencies run: `poetry install --with docs`

To include test and docs dependencies run: `poetry install --with test,docs`

Expand All @@ -38,6 +38,8 @@ If you require a requirements.txt file you can run:

We use pre-commit to make sure the code is consistently formatted. To make sure that pre-commit is run every time you commit changes, simply run `pre-commit install`

To build the codeflare-sdk pre-commit image run `podman build -f .github/build/Containerfile .` from the root directory.

### Testing

- To install codeflare-sdk in editable mode, run `pip install -e .` from the repo root.
Expand Down

0 comments on commit 48de283

Please sign in to comment.