diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..eda8776c0 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,28 @@ +name: CI +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - + name: Checkout + uses: actions/checkout@v2.3.4 + - + name: Build base image + uses: docker/build-push-action@v2.7.0 + with: + context: . + tags: splash + - + name: Build tests image + uses: docker/build-push-action@v2.7.0 + with: + context: dockerfiles/tests + tags: splash-tests + - + name: Run tests + shell: 'script --return --quiet --command "bash {0}"' + run: | + docker run -it splash-tests diff --git a/dockerfiles/splash/install-python-splash-deps.sh b/dockerfiles/splash/install-python-splash-deps.sh index bfbb4f62c..8e92c9aa9 100755 --- a/dockerfiles/splash/install-python-splash-deps.sh +++ b/dockerfiles/splash/install-python-splash-deps.sh @@ -3,7 +3,7 @@ _PYTHON=python3 install_python_deps () { # Install python-level dependencies. - ${_PYTHON} -m pip install -U pip setuptools six && \ + ${_PYTHON} -m pip install -U pip setuptools==57.5.0 six && \ ${_PYTHON} -m pip install \ qt5reactor==0.5 \ psutil==5.0.0 \ diff --git a/dockerfiles/tests/runtests.sh b/dockerfiles/tests/runtests.sh index 98323c253..b042a4073 100755 --- a/dockerfiles/tests/runtests.sh +++ b/dockerfiles/tests/runtests.sh @@ -1,5 +1,2 @@ #!/usr/bin/env bash -py.test --cov=splash --doctest-modules --durations=50 "$@" && \ -if [ -n "${TRAVIS}" ]; then - codecov -fi; \ No newline at end of file +py.test --cov=splash --doctest-modules --durations=50 "$@"