Skip to content

Commit

Permalink
Merge f1b59cd into 9f40c6e
Browse files Browse the repository at this point in the history
  • Loading branch information
XiChenn committed Sep 23, 2022
2 parents 9f40c6e + f1b59cd commit 65d4910
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
python-version: [3.9]
services:
postgres:
image: postgres:9.5
image: postgres:13.6
env:
POSTGRES_PASSWORD: postgres
# Set health checks to wait until postgres has started
Expand All @@ -34,11 +34,17 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Pre installation
env:
REDIS_VERSION: 6.2.7
run: |
wget https://download.redis.io/releases/redis-$REDIS_VERSION.tar.gz
tar -xzf redis-$REDIS_VERSION.tar.gz
cd redis-$REDIS_VERSION && make install && cd ..
sudo apt-get update -y
sudo apt-get install -y libxml2-dev libxmlsec1-dev libsasl2-dev libldap2-dev libssl-dev libkrb5-dev libpq-dev redis-server redis-tools postgresql-client
sudo apt-get install -y libxml2-dev libxmlsec1-dev libsasl2-dev libldap2-dev libssl-dev libkrb5-dev libpq-dev postgresql-client
redis-server --version
redis-server contrib/redis/sentinel.conf --sentinel
redis-server&
cd pybossa && ln -s themes/default/translations && cd ..
cp settings_test.py.tmpl pybossa/settings_test.py
Expand Down
2 changes: 1 addition & 1 deletion test/test_api/test_task_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ def test_task_query_without_params(self, auth):
res = self.app.get(url)
data = json.loads(res.data)
err_msg = "It should get the last item first."
assert data[0]['id'] == tasks[1]['id'], err_msg
assert data[0]['id'] == tasks[2]['id'], err_msg

# Related
taskruns = TaskRunFactory.create_batch(8, project=project, task=t2)
Expand Down

0 comments on commit 65d4910

Please sign in to comment.