-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #164 from pescadores/2024-fixings
2024 fixings
- Loading branch information
Showing
14 changed files
with
242 additions
and
207 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: pescador-dev | ||
channels: | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
# required | ||
- pip | ||
- six>=1.8 | ||
- pyzmq>=18.0 | ||
- decorator>=4.0 | ||
|
||
# optional, but required for testing | ||
- pytest | ||
- pytest-cov | ||
- pytest-timeout>=1.2 | ||
- coverage | ||
- scipy |
This file contains 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: pescador-dev | ||
channels: | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
# required | ||
- pip | ||
- six~=1.8 | ||
- pyzmq~=18.0 | ||
- decorator~=4.0 | ||
|
||
# optional, but required for testing | ||
- pytest | ||
- pytest-cov | ||
- pytest-timeout>=1.2 | ||
- coverage | ||
- scipy |
This file contains 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 |
---|---|---|
@@ -0,0 +1,110 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: True | ||
|
||
jobs: | ||
test: | ||
name: "Python ${{ matrix.python-version }} on ${{ matrix.os }}" | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
python-version: "3.7" | ||
envfile: ".github/environment-minimal.yml" | ||
channel-priority: "flexible" | ||
name: "Minimal dependencies" | ||
|
||
- os: ubuntu-latest | ||
python-version: "3.8" | ||
channel-priority: "strict" | ||
envfile: ".github/environment-ci.yml" | ||
|
||
- os: ubuntu-latest | ||
python-version: "3.9" | ||
channel-priority: "strict" | ||
envfile: ".github/environment-ci.yml" | ||
|
||
- os: ubuntu-latest | ||
python-version: "3.10" | ||
channel-priority: "strict" | ||
envfile: ".github/environment-ci.yml" | ||
|
||
- os: ubuntu-latest | ||
python-version: "3.11" | ||
channel-priority: "strict" | ||
envfile: ".github/environment-ci.yml" | ||
|
||
- os: macos-latest | ||
python-version: "3.11" | ||
channel-priority: "strict" | ||
envfile: ".github/environment-ci.yml" | ||
|
||
- os: windows-latest | ||
python-version: "3.11" | ||
channel-priority: "strict" | ||
envfile: ".github/environment-ci.yml" | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- name: Cache conda | ||
uses: actions/cache@v3 | ||
env: | ||
# Increase this value to reset cache if etc/example-environment.yml has not changed | ||
CACHE_NUMBER: 0 | ||
with: | ||
path: ~/conda_pkgs_dir | ||
key: ${{ runner.os }}-${{ matrix.python-version }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles( matrix.envfile ) }} | ||
|
||
- name: Install Conda environment | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
python-version: ${{ matrix.python-version }} | ||
add-pip-as-python-dependency: true | ||
auto-activate-base: false | ||
activate-environment: test | ||
channel-priority: ${{ matrix.channel-priority }} | ||
environment-file: ${{ matrix.envfile }} | ||
use-only-tar-bz2: false # IMPORTANT: This needs to be set for caching to work properly! | ||
|
||
- name: Conda info | ||
shell: bash -l {0} | ||
run: | | ||
conda info -a | ||
conda list | ||
- name: Install pescador | ||
shell: bash -l {0} | ||
run: python -m pip install --upgrade-strategy only-if-needed -e .[tests] | ||
|
||
- name: Run pytest | ||
shell: bash -l {0} | ||
run: pytest | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: ./coverage.xml | ||
directory: ./coverage/reports/ | ||
flags: unittests | ||
env_vars: OS,PYTHON | ||
name: codecov-umbrella | ||
fail_ci_if_error: true | ||
verbose: true |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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 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 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 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,2 +1,46 @@ | ||
[tool:pytest] | ||
addopts = --cov-report term-missing --cov pescador | ||
addopts = --cov-report term-missing --cov pescador --cov-report=xml | ||
|
||
[metadata] | ||
name = pescador | ||
version = attr: pescador.version.version | ||
description = Multiplex generators for incremental learning | ||
author = Pescador developers | ||
author_email = [email protected] | ||
url = https://github.com/pescadores/pescador | ||
download_url = https://github.com/pescadores/pescador/releases | ||
long_description = Multiplex generators for incremental learning | ||
license = ISC | ||
python_requires = ">=3.7" | ||
classifiers = | ||
License :: OSI Approved :: ISC License (ISCL) | ||
Programming Language :: Python | ||
Development Status :: 3 - Alpha | ||
Intended Audience :: Developers | ||
Topic :: Multimedia :: Sound/Audio :: Analysis | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Programming Language :: Python :: 3.10 | ||
Programming Language :: Python :: 3.11 | ||
|
||
[options] | ||
packages = find: | ||
keywords = machine learning | ||
install_requires = | ||
six >= 1.8 | ||
pyzmq >= 18.0 | ||
numpy >= 1.9 | ||
decorator >= 4.0 | ||
|
||
[options.extras_require] | ||
docs = | ||
numpydoc >= 0.6 | ||
sphinx-gallery >= 0.1.10 | ||
tests = | ||
pytest | ||
pytest-timeout>=1.2 | ||
pytest-cov | ||
scipy | ||
|
Oops, something went wrong.