From 701a9b7845aab6996f0cf62e226c643e9104b71a Mon Sep 17 00:00:00 2001 From: Pablo Zinemanas Date: Fri, 30 Apr 2021 14:06:13 +0200 Subject: [PATCH] Add build for py38 --- .github/workflows/main.yml | 37 +++++++++++++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 34c602a..2fd313b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,12 +6,12 @@ name: Python package on: [push] jobs: - build: + build_py36: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.6, 3.7] + python-version: [3.6] steps: - uses: actions/checkout@v2 @@ -26,7 +26,9 @@ jobs: python -m pip install 'h5py==2.10.0' --force-reinstall - name: Install library run: | - python -m pip install .[keras_tf] + python -m pip install .[keras_tf] + python -m pip install .[openl3] + python -m pip install .[autopool] python -m pip install .[tests] - name: Lint with flake8 run: | @@ -50,12 +52,39 @@ jobs: path_to_write_report: ./coverage/codecov_report.txt verbose: true + build_py37: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.7] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + sudo apt-get install -y wget libsndfile-dev sox + python -m pip install flake8 + python -m pip install 'h5py==2.10.0' --force-reinstall + - name: Install library + run: | + python -m pip install .[keras_tf] + python -m pip install .[tests] + - name: Test with pytest + run: | + pytest --cov-report term-missing --cov-report=xml --cov dcase_models ./tests + + build_tf2: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.6, 3.7] + python-version: [3.6, 3.7, 3.8] steps: - uses: actions/checkout@v2