Skip to content

Commit

Permalink
use pipenv in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
bgalek committed Jan 25, 2024
1 parent 1a65c9f commit 62ad1d5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/pylint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: pipenv
- run: python -m pip install --upgrade pipenv wheel
- run: pipenv install --dev
- uses: pr-annotators/pylint-pr-annotator@main
- name: Analysing the code with pylint
run: pylint $(git ls-files '*.py')
run: pipenv run pylint $(git ls-files '*.py')
5 changes: 4 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@ jobs:
PYTHONUTF8: 1
permissions:
pull-requests: write
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: pipenv
- run: python -m pip install --upgrade pipenv wheel
- run: pipenv install --dev
- run: coverage run -m unittest discover -s ./_tests
- run: pipenv run coverage run -m unittest discover -s ./_tests
- uses: py-cov-action/python-coverage-comment-action@v3
with:
GITHUB_TOKEN: ${{ github.token }}
3 changes: 0 additions & 3 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,3 @@ name = "pypi"
[dev-packages]
coverage = "*"
pylint = "*"

[requires]
python_version = "3.12"
6 changes: 2 additions & 4 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 62ad1d5

Please sign in to comment.