Skip to content

Remove 3.5 configuration from tox, run pyflakes on ghaction. #641

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 2 commits into from
Feb 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,26 @@ jobs:
user: __token__
password: ${{ secrets.pypi_password }}
# To test: repository_url: https://test.pypi.org/legacy/
build_artifacts:
name: Linting with flake8
runs-on: ubuntu-latest
strategy:
fail-fast: false

steps:
- uses: actions/checkout@v1
with:
submodules: true

- uses: actions/setup-python@v1
name: Install Python
with:
python-version: '3.8'

- name: Install pyflakes
run: |
python -m pip install pyflakes
- name: run pyflakes
run: |
pyflakes zarr

6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ commands =
# clear out any data files generated during tests
python -c 'import glob; import shutil; import os; [(shutil.rmtree(d) if os.path.isdir(d) else os.remove(d) if os.path.isfile(d) else None) for d in glob.glob("./example*")]'
# main unit test runner
py35,py36,py38: pytest -v --cov=zarr --cov-config=.coveragerc zarr
py36,py38: pytest -v --cov=zarr --cov-config=.coveragerc zarr
# don't collect coverage when running older numpy versions
py37-{npy115,npy116}: pytest -v zarr
# collect coverage and run doctests under py37
py37-npylatest: pytest -v --cov=zarr --cov-config=.coveragerc --doctest-plus zarr --remote-data
# generate a coverage report
py35,py36,py37-npylatest,py38: coverage report -m
py36,py37-npylatest,py38: coverage report -m
# run doctests in the tutorial and spec
py38: python -m doctest -o NORMALIZE_WHITESPACE -o ELLIPSIS docs/tutorial.rst docs/spec/v2.rst
# pep8 checks
Expand All @@ -34,7 +34,7 @@ commands =
deps =
py37-npy115: numpy==1.15.4
py37-npy116: numpy==1.16.4
py35,py36,py37-npylatest,py38: -rrequirements_dev_numpy.txt
py36,py37-npylatest,py38: -rrequirements_dev_numpy.txt
-rrequirements_dev_minimal.txt
-rrequirements_dev_optional.txt

Expand Down