# This workflow will install Python dependencies, run tests and lint with a single version of Python # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions name: Unit Test on: push: branches: [ master ] pull_request: branches: [ master ] jobs: build: runs-on: self-hosted steps: - uses: actions/checkout@v2 - uses: seanmiddleditch/gha-setup-ninja@master - name: Set up Python uses: actions/github-script@0.3.0 with: github-token: ${{github.token}} script: | const core = require('@actions/core') core.exportVariable("PATH", "/home/ubuntu/anaconda3/bin:/usr/local/bin:/usr/bin/:/bin:$PATH") - name: Install package run: | python -m pip install --upgrade pip pip install -e . - name: Run pytest run: | pip install nose nosetests -v tests/unit_test/