From 2eb706323905f1cf57c8b88b688fad699ebe5689 Mon Sep 17 00:00:00 2001 From: Camilo Diaz Date: Thu, 15 Feb 2024 23:30:22 -0500 Subject: [PATCH] restoring test.yml file --- .github/workflows/tests.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 00000000..811e85db --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,29 @@ +name: Test steps +on: + pull_request: {} + push: + branches: [ main ] +jobs: + python_run_scripts: + strategy: + fail-fast: false + matrix: + version: ['3.11'] + runs-on: ubuntu-latest + steps: + - name: install mpi + run: sudo apt update && sudo apt-get install openmpi-bin openmpi-doc libopenmpi-dev + - uses: actions/checkout@v3 + with: + lfs: true + - name: setup python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.version }} # install the python version needed + cache: "pip" + - name: install icesat2-tracks using pip + run: pip install . + - name: install pytest + run: pip install pytest pytest-xdist pytest-sugar pytest-durations + - name: Run tests + run: pytest --capture=sys --verbose --showlocals --tb=long --numprocesses=auto tests/test_steps.py