Skip to content

Commit ab28b02

Browse files
authored
Merge pull request #1141 from Laerte/master
Add Github Actions
2 parents 802d839 + a4bc17a commit ab28b02

File tree

3 files changed

+30
-5
lines changed

3 files changed

+30
-5
lines changed

.github/workflows/main.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
8+
steps:
9+
-
10+
name: Checkout
11+
uses: actions/checkout@v2.3.4
12+
-
13+
name: Build base image
14+
uses: docker/build-push-action@v2.7.0
15+
with:
16+
context: .
17+
tags: splash
18+
-
19+
name: Build tests image
20+
uses: docker/build-push-action@v2.7.0
21+
with:
22+
context: dockerfiles/tests
23+
tags: splash-tests
24+
-
25+
name: Run tests
26+
shell: 'script --return --quiet --command "bash {0}"'
27+
run: |
28+
docker run -it splash-tests

dockerfiles/splash/install-python-splash-deps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ _PYTHON=python3
33

44
install_python_deps () {
55
# Install python-level dependencies.
6-
${_PYTHON} -m pip install -U pip setuptools six && \
6+
${_PYTHON} -m pip install -U pip setuptools==57.5.0 six && \
77
${_PYTHON} -m pip install \
88
qt5reactor==0.5 \
99
psutil==5.0.0 \

dockerfiles/tests/runtests.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
#!/usr/bin/env bash
2-
py.test --cov=splash --doctest-modules --durations=50 "$@" && \
3-
if [ -n "${TRAVIS}" ]; then
4-
codecov
5-
fi;
2+
py.test --cov=splash --doctest-modules --durations=50 "$@"

0 commit comments

Comments
 (0)