Fix dependency failure on gradle install #50
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: HumanMine bio sources CI | |
on: | |
push: | |
pull_request: | |
jobs: | |
unit-tests: | |
runs-on: ubuntu-latest | |
services: | |
# Label used to access the service container | |
postgres: | |
image: postgres:11 | |
# Provide the password for postgres | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 5432/tcp | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: '11' | |
- name: Set up python 2.7 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '2.7' | |
- name: Install PostgreSQL client | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install -y libpq-dev postgresql-client | |
sudo service postgresql start | |
- name: Run unit tests | |
run: ./config/init.sh && ./config/run.sh |