From f4a1d6dd2cd11a33eeaff01b2c7c58334f8931ee Mon Sep 17 00:00:00 2001 From: Arslan Mazitov Date: Fri, 9 Feb 2024 00:47:25 +0100 Subject: [PATCH] Added workflow for Alchemical Model tests --- .github/workflows/alchemical-model-test.yml | 36 +++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/alchemical-model-test.yml diff --git a/.github/workflows/alchemical-model-test.yml b/.github/workflows/alchemical-model-test.yml new file mode 100644 index 000000000..3b4d088b1 --- /dev/null +++ b/.github/workflows/alchemical-model-test.yml @@ -0,0 +1,36 @@ +name: Alchemical Model tests + +on: + push: + branches: [main] + pull_request: + # Check all PR + +jobs: + tests: + runs-on: ${{ matrix.os }} + strategy: + matrix: + include: + - os: ubuntu-22.04 + python-version: "3.11" + + steps: + - uses: actions/checkout@v3 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - run: pip install tox + + - name: run Alchemical Model tests + run: tox -e alchemical-model-tests + env: + # Use the CPU only version of torch when building/running the code + PIP_EXTRA_INDEX_URL: https://download.pytorch.org/whl/cpu + + - name: Upload codecoverage + uses: codecov/codecov-action@v3 + with: + files: ./tests/coverage.xml