Skip to content

Commit

Permalink
attempt 15 at fixing github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aris-koning committed Sep 16, 2024
1 parent fa71517 commit 7151488
Showing 1 changed file with 10 additions and 22 deletions.
32 changes: 10 additions & 22 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ jobs:
DBFARM: /var/lib/monetdb
DATABASE: test
continue-on-error: true
services:
monetdb:
image: "monetdb/dev-builds:Aug2024"
env:
MDB_CREATE_DBS: [${{ env.DATABASE }}]
MDB_DB_ADMIN_PASS: monetdb

ports:
- 50000:50000
strategy:
matrix:
branch: [default]
Expand All @@ -23,36 +32,15 @@ jobs:
curl https://www.monetdb.org/downloads/MonetDB-GPG-KEY | sudo apt-key add -
sudo add-apt-repository 'deb http://dev.monetdb.org/downloads/deb/ focal monetdb'
sudo apt-get update -qq
sudo apt-get install -y monetdb5-server monetdb5-sql monetdb-client
- name: Start MonetDB
run: |
sudo mkdir -p -m 770 ${{ env.DBFARM }}
sudo chown -R monetdb.monetdb ${{ env.DBFARM }}
sudo -u monetdb monetdbd create ${{ env.DBFARM }}
sudo -u monetdb monetdbd set control=yes ${{ env.DBFARM }}
sudo -u monetdb monetdbd set passphrase=testdb ${{ env.DBFARM }}
sudo -u monetdb monetdbd start ${{ env.DBFARM }}
sudo -u monetdb chmod o+rwx /tmp/.s.mero*
sudo apt-get install -y monetdb-client
- name: Create MonetDB ${{ env.DATABASE }} database
run: |
sudo -u monetdb monetdb create ${{ env.DATABASE }}
sudo -u monetdb monetdb set embedpy3=true ${{ env.DATABASE }}
sudo -u monetdb monetdb release ${{ env.DATABASE }}
sudo -u monetdb monetdb start ${{ env.DATABASE }} || true
sudo cat /var/lib/monetdb/merovingian.log
sudo -u monetdb monetdb status
sudo -u monetdb mclient -d "monetdb://localhost:50000/${{ env.DATABASE }}?user=monetdb&password=monetdb" -s "create schema test_schema;"
sudo -u monetdb mclient -d "monetdb://localhost:50000/${{ env.DATABASE }}?user=monetdb&password=monetdb" -s "create schema test_schema2;"
sudo -u monetdb mclient -d "monetdb://localhost:50000/${{ env.DATABASE }}?user=monetdb&password=monetdb" -s "alter user monetdb set schema test_schema2;"
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

# - name: Setup database
# run: |
# cd test
# ./initfarm.sh
# ./initdb.sh
- name: Run tests
run: make pytest

0 comments on commit 7151488

Please sign in to comment.