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/*