Skip to content

Commit

Permalink
Merge pull request #1141 from Laerte/master
Browse files Browse the repository at this point in the history
Add Github Actions
  • Loading branch information
wRAR committed May 5, 2022
2 parents 802d839 + a4bc17a commit ab28b02
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 5 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion dockerfiles/splash/install-python-splash-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
5 changes: 1 addition & 4 deletions dockerfiles/tests/runtests.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
#!/usr/bin/env bash
py.test --cov=splash --doctest-modules --durations=50 "$@" && \
if [ -n "${TRAVIS}" ]; then
codecov
fi;
py.test --cov=splash --doctest-modules --durations=50 "$@"

0 comments on commit ab28b02

Please sign in to comment.