Merge pull request #7 from clementsan/master #1
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 workflow will install Python dependencies, run tests and lint with a single version of Python | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
name: Python application | |
on: | |
push: | |
branches: [ "master", "dev", "CuPy"] | |
pull_request: | |
branches: [ "master" ] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
env: | |
CURSES: False | |
TERM: xterm | |
ECLIPSE: ECLIPSE | |
# TESTINPUTPATH: ${{ github.workspace }}/testdata | |
# TESTOUTPUTPATH: ${{ github.workspace }}/testdata_output | |
jobs: | |
build: | |
# runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install . | |
- name: Create test data folders (Mac and linux) | |
if: runner.os != 'Windows' | |
run: | | |
echo ${{ github.workspace }} | |
mkdir -p ${{ github.workspace }}/testdata ${{ github.workspace }}/testdata_output | |
echo "TESTINPUTPATH=${{ github.workspace }}/testdata" >> $GITHUB_ENV | |
echo "TESTOUTPUTPATH=${{ github.workspace }}/testdata_output" >> $GITHUB_ENV | |
- name: Create test data folders for Windows | |
if: runner.os == 'Windows' | |
run: | | |
echo ${{ github.workspace }} | |
mkdir -p ${{ github.workspace }}\testdata | |
mkdir -p ${{ github.workspace }}\testdata_output | |
echo "TESTINPUTPATH=${{ github.workspace }}\testdata" >> $env:GITHUB_ENV | |
echo "TESTOUTPUTPATH=${{ github.workspace }}\testdata_output" >> $env:GITHUB_ENV | |
- name: Echo test data folders (Mac and linux) | |
if: runner.os != 'Windows' | |
run: | | |
echo $TESTINPUTPATH | |
echo $TESTOUTPUTPATH | |
- name: Echo test data folders for Windows | |
if: runner.os == 'Windows' | |
run: | | |
echo $env:TESTINPUTPATH | |
echo $env:TESTOUTPUTPATH | |
- name: Test with unittest | |
run: | | |
python -m unittest discover -s ./test -p 'test_pipelinemanager*.py' |