Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 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
12 changes: 7 additions & 5 deletions .github/workflows/qiita-plugin-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ jobs:
# derived from https://github.com/actions/example-services/blob/master/.github/workflows/postgres-service.yml
main:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
# Downloads a copy of the code in your repository before running CI tests
- name: Check out repository code
Expand All @@ -19,21 +21,21 @@ jobs:
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.9
python-version: ${{ matrix.python-version }}

- name: Basic dependencies install
shell: bash -l {0}
run: |
conda create --yes -n qiita-files python=3.9 h5py pandas scipy numpy
conda create --yes -n qiita-files python=${{ matrix.python-version }} h5py pandas scipy numpy
conda activate qiita-files
pip install .
pip install sphinx sphinx-bootstrap-theme nose-timer codecov Click
pip install sphinx sphinx-bootstrap-theme pytest-cov codecov Click

- name: Main tests
shell: bash -l {0}
run: |
conda activate qiita-files
nosetests --with-doctest --with-coverage --cover-package=qiita_files
pytest --doctest-modules --cov=qiita_files --cov-report=lcov

lint:
runs-on: ubuntu-latest
Expand Down
5 changes: 4 additions & 1 deletion qiita_files/parse/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
from copy import deepcopy
from time import time
from functools import update_wrapper
from collections import Iterable
try:
from collections.abc import Iterable
except ImportError:
from collections import Iterable
from types import MethodType


Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
Programming Language :: Python
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Comment on lines 21 to 22
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for adding those, just to confirm, is it OK to leave these?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I recall correctly, older plugins (qp-deblur) still run on py3.5 - so we should not remove.
Unfortunately, the test framework breaks, as pytest is not available in this old py version. I suggest to NOT test, but keep these lines

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

found a way to avoid running coverage reports for older py versions, while still executing tests :-)

Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be updated, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch!

Programming Language :: Python :: Implementation :: CPython
Operating System :: POSIX :: Linux
Operating System :: MacOS :: MacOS X
Expand Down
Loading