From e67229206879cdcc117ad473e88faa96f064cb58 Mon Sep 17 00:00:00 2001 From: ariel Date: Fri, 9 Feb 2024 13:59:52 +0100 Subject: [PATCH] Try to re-add automated tests to github actions --- .github/workflows/build.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..c01c79e --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,20 @@ +name: build +on: [pull_request, push] + +permissions: + contents: read # to fetch code (actions/checkout) + +jobs: + build-all: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.8', '3.9', '3.10'] + steps: + - uses: actions/checkout@v3 + - run: | + docker build -f bin/all-py.Dockerfile \ + --build-arg PYTHON_VERSION=${{ matrix.python-version }} \ + --tag cogment_lab-all-docker . + - name: Run tests + run: docker run cogment_lab-all-docker pytest tests/*