-
Notifications
You must be signed in to change notification settings - Fork 3
Get rid of pytest pylint #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
050291d
cruft update
dtrifiro 4259ca7
Update .github/workflows/release.yaml
skshetry f3065b7
setup.cfg: get rid of pylint-pytest
dtrifiro ee2d1da
remove plugin
skshetry d6d606b
remove unused dependencies
skshetry 7a4f104
Update setup.cfg
skshetry cc0d9f9
Update setup.cfg
skshetry 9d11be8
tests: silence pylint redefined-outer-name
dtrifiro 07367ca
deps: bump pylint to 2.15.9
dtrifiro 5a927b2
tests: add timeout to post request
dtrifiro File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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,87 +1,56 @@ | ||
name: Tests | ||
|
||
on: | ||
pull_request: {} | ||
push: {} | ||
push: | ||
branches: [main] | ||
pull_request: | ||
schedule: | ||
- cron: '5 1 * * *' # every day at 01:05 | ||
|
||
workflow_dispatch: | ||
|
||
env: | ||
DVC_TEST: "true" | ||
HOMEBREW_NO_AUTO_UPDATE: 1 | ||
SHELL: /bin/bash | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
lint: | ||
timeout-minutes: 10 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Python 3.8 | ||
uses: actions/[email protected] | ||
with: | ||
python-version: 3.8 | ||
- name: Install requirements | ||
run: | | ||
pip install wheel | ||
pip install -e '.[tests]' | ||
pip install git+https://github.com/iterative/dvc pre-commit | ||
- name: Check README | ||
run: python setup.py checkdocs | ||
- uses: pre-commit/[email protected] | ||
tests: | ||
timeout-minutes: 45 | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-20.04, windows-latest, macos-latest] | ||
pyv: ["3.8", "3.9", "3.10"] | ||
exclude: | ||
# no wheels for pygit2 yet | ||
- os: windows-latest | ||
pyv: "3.10" | ||
pyv: ["3.8", "3.9", "3.10", "3.11"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2.4.0 | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2.2.2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.pyv }} | ||
- name: get pip cache dir | ||
id: pip-cache-dir | ||
run: | | ||
echo "::set-output name=dir::$(pip cache dir)" | ||
- name: set pip cache | ||
id: pip-cache | ||
uses: actions/[email protected] | ||
with: | ||
path: ${{ steps.pip-cache-dir.outputs.dir }} | ||
key: ${{ runner.os }}-pip-${{ hashFiles('setup.cfg') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
cache: 'pip' | ||
cache-dependency-path: setup.cfg | ||
|
||
- name: install | ||
if: steps.cache.pip-cache-dir.cache-hit != 'true' | ||
run: | | ||
pip install --upgrade pip setuptools wheel | ||
pip install --upgrade pip wheel | ||
pip install -e ".[tests]" | ||
pip install "dvc[testing]@git+https://github.com/iterative/dvc" | ||
- name: setup git | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "DVC Tester" | ||
pip install "dvc[testing] @ git+https://github.com/iterative/dvc" | ||
|
||
- name: lint | ||
timeout-minutes: 10 | ||
uses: pre-commit/[email protected] | ||
|
||
- name: run tests | ||
timeout-minutes: 40 | ||
timeout-minutes: 15 | ||
run: pytest -v -n=auto --cov-report=xml --cov-report=term | ||
|
||
- name: upload coverage report | ||
uses: codecov/[email protected] | ||
with: | ||
|
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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,4 @@ | ||
# pylint: disable=redefined-outer-name | ||
import os | ||
|
||
import pytest | ||
|
This file contains hidden or 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
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.