From 0dd67b5d44df3876044ef7e0062caf6d0b954042 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Wed, 1 Sep 2021 23:11:39 +0200 Subject: [PATCH] do real tests https://github.community/t/create-matrix-with-multiple-os-and-env-for-each-one/16895 --- .github/workflows/.github-actions-demo.yml | 40 +++++++++++++--------- 1 file changed, 24 insertions(+), 16 deletions(-) diff --git a/.github/workflows/.github-actions-demo.yml b/.github/workflows/.github-actions-demo.yml index 02fdddc6e..f167f05eb 100644 --- a/.github/workflows/.github-actions-demo.yml +++ b/.github/workflows/.github-actions-demo.yml @@ -1,18 +1,26 @@ -name: GitHub Actions Demo +name: Test Processing Tools on: [push] -jobs: - Explore-GitHub-Actions: - runs-on: ubuntu-latest - steps: - - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" - - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - - name: Check out repository code - uses: actions/checkout@v2 - - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository - run: | - ls ${{ github.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." +jobs: + build: + + runs-on: ${{ matrix.os }} + strategy: + matrix: + python-version: [3.7, 3.8, 3.9] + os: [ubuntu-latest, macos-latest] + + 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: | + python -m pip install --upgrade pip + pip install pytest pandas scipy h5py vtk matplotlib pyyaml + - name: Test with pytest + run: | + python -m pip install ./python --no-deps -vv --use-feature=in-tree-build + pytest python