Skip to content

Commit

Permalink
updated actions
Browse files Browse the repository at this point in the history
  • Loading branch information
khoroshevskyi committed Feb 7, 2024
1 parent 3a386c2 commit d77caff
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/cli-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@ jobs:
with:
python-version: '3.8'

- name: Install dev dependancies
run: if [ -f requirements/requirements-dev.txt ]; then pip install -r requirements/requirements-dev.txt; fi

- run: pip install .
working-directory: cli
- run: pip install coverage

- name: Run tests
run: coverage run -m pytest tests

- name: get coverage artifacts
uses: actions/download-artifact@v2
with:
name: coverage_files
path: cli

- name: build coverage
working-directory: cli
run: |
coverage combine
coverage html -i
run: coverage html -i

- run: smokeshow upload cli/htmlcov
- run: smokeshow upload htmlcov
env:
SMOKESHOW_GITHUB_STATUS_DESCRIPTION: CLI Coverage {coverage-percentage}
SMOKESHOW_GITHUB_COVERAGE_THRESHOLD: 50
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ jobs:
- name: Install dev dependancies
run: if [ -f requirements/requirements-dev.txt ]; then pip install -r requirements/requirements-dev.txt; fi

- name: Install test dependancies
run: if [ -f requirements/requirements-test.txt ]; then pip install -r requirements/requirements-test.txt; fi

- name: Install package
run: python -m pip install .

Expand Down
3 changes: 2 additions & 1 deletion requirements/requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
black
pytest
python-dotenv
python-dotenv
coverage

0 comments on commit d77caff

Please sign in to comment.