Skip to content

Commit

Permalink
Add Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Laerte committed Oct 13, 2021
1 parent 802d839 commit bf59599
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 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/[email protected]
-
name: Build base image
uses: docker/[email protected]
with:
context: .
tags: splash
-
name: Build tests image
uses: docker/[email protected]
with:
context: dockerfiles/tests
tags: splash-tests
-
name: Run tests and Codecov
shell: 'script --return --quiet --command "bash {0}"'
run: |
docker run --env CI='true' -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
2 changes: 1 addition & 1 deletion dockerfiles/tests/runtests.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
py.test --cov=splash --doctest-modules --durations=50 "$@" && \
if [ -n "${TRAVIS}" ]; then
if [ -n "${CI}" ]; then
codecov
fi;

0 comments on commit bf59599

Please sign in to comment.