Add .whitesource configuration file #320
This file contains hidden or 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
| name: SAIL CI | |
| on: | |
| push: | |
| pull_request: | |
| branches-ignore: | |
| - main | |
| jobs: | |
| build_and_test: | |
| runs-on: ubuntu-20.04 | |
| steps: | |
| - name: Branch and collaborator info | |
| run: | | |
| echo Branch Name: ${{github.ref_name}} | |
| echo Triggered by: ${{github.actor}} | |
| echo Event: ${{github.event_name}} | |
| - name: Checkout sail repo | |
| uses: actions/checkout@v3 | |
| - name: Install python version 3.10 | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.10.*" | |
| cache: "pip" | |
| - name: Install Sail and its dependencies | |
| run: | | |
| pip install ".[all]" | |
| - name: Run unit tests with pytest | |
| run: pytest -s -n=auto --tb=native tests | |
| # test: | |
| # runs-on: ubuntu-20.04 | |
| # needs: build | |
| # steps: | |
| # - name: Branch and collaborator info | |
| # run: | | |
| # echo Branch Name: ${{github.ref_name}} | |
| # echo Triggered by: ${{github.actor}} | |
| # echo Event: ${{github.event_name}} | |
| # - name: Checkout sail repo | |
| # uses: actions/checkout@v3 | |
| # - name: Install python version 3.10 | |
| # uses: actions/setup-python@v4 | |
| # with: | |
| # python-version: "3.10.*" | |
| # cache: "pip" | |
| # - name: Install sail and its dependencies | |
| # run: | | |
| # pip install ".[all]" | |
| # - name: Run unit tests with pytest | |
| # run: pytest -s -n=auto --tb=native tests | |
| # - name: Run notebooks with pytest | |
| # run: | | |
| # pytest -s --nbmake -n=auto notebooks/*.ipynb | |
| # pytest -s --nbmake -n=auto examples/*.ipynb | |
| # - name: Run examples with pytest | |
| # run: pytest -s --script-launch-mode=subprocess -n=auto examples/*.py |