From 8c9fecd7c990e1b0158e0ce142ae1e15c4d7a42d Mon Sep 17 00:00:00 2001 From: Ramin Toosi Date: Wed, 14 Jun 2023 15:57:54 +0330 Subject: [PATCH] ross test with github actions --- .github/workflows/ross-test.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/ross-test.yml diff --git a/.github/workflows/ross-test.yml b/.github/workflows/ross-test.yml new file mode 100644 index 0000000..d548a1d --- /dev/null +++ b/.github/workflows/ross-test.yml @@ -0,0 +1,31 @@ +name: ROSS Test + +on: + push: + branches-ignore: + - master + pull_request: + branches: + - v2 + +jobs: + build-linux: + runs-on: ubuntu-latest + strategy: + max-parallel: 5 + steps: + - uses: actions/checkout@v3 + - name: Set up Python 3.9 + uses: actions/setup-python@v3 + with: + python-version: '3.9' + - name: Add conda to system path + run: | + # $CONDA is an environment variable pointing to the root of the miniconda directory + echo $CONDA/bin >> $GITHUB_PATH + - name: Install dependencies + run: | + conda env update --file environment.yml --name base + - name: Test with pytest + run: | + python -m pytest -q -rf --tb=short --cov-report term-missing --cov=./