From c95011f72b03e105769f77383d423acbe0c3bc83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Bo=CC=88ck?= Date: Wed, 26 Jan 2022 20:11:49 +0100 Subject: [PATCH] enable matrix --- .github/workflows/python-package-conda.yml | 33 +++++++++------------- 1 file changed, 14 insertions(+), 19 deletions(-) diff --git a/.github/workflows/python-package-conda.yml b/.github/workflows/python-package-conda.yml index 0b9c7db9..e91b1cc7 100644 --- a/.github/workflows/python-package-conda.yml +++ b/.github/workflows/python-package-conda.yml @@ -5,26 +5,20 @@ on: [push] jobs: build-linux: runs-on: ubuntu-latest + + defaults: + run: + shell: bash -l {0} + strategy: max-parallel: 5 + fail-fast: false + matrix: + python-version: [ "3.7", "3.8", "3.9", "3.10" ] steps: - uses: actions/checkout@v2 - - name: Set up Python 3.10 - uses: actions/setup-python@v2 - with: - python-version: "3.10" -# - name: Install OS dependencies -# shell: bash -l {0} -# run: | -# # get a working ffmpeg -# sudo wget -O ffmpeg.tar.gz https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz -# sudo mkdir ffmpeg -# sudo tar xvf ffmpeg.tar.gz -C ffmpeg --strip-components=1 -# sudo cp ffmpeg/ffmpeg ffmpeg/ffprobe /usr/bin/ -# # install system libraries -# sudo apt-get update -yy -# sudo apt-get install -yy libfftw3-dev + - name: Cache conda uses: actions/cache@v2 env: @@ -32,6 +26,7 @@ jobs: with: path: ~/conda_pkgs_dir key: ${{ runner.os }}-${{ matrix.python-version }}-conda-${{ env.CACHE_NUMBER }} + - name: Install Conda env uses: conda-incubator/setup-miniconda@v2 with: @@ -42,24 +37,24 @@ jobs: activate-environment: madmom environment-file: environment.yml use-only-tar-bz2: true # 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 madmom - shell: bash -l {0} run: | pip install -e . git submodule update --init --remote + - name: Lint with flake8 - shell: bash -l {0} run: | # stop the build if there are Python syntax errors or undefined names flake8 . --count --exit-zero --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest - shell: bash -l {0} run: | pytest --cov --doctest-ignore-import-errors madmom tests