-
Notifications
You must be signed in to change notification settings - Fork 1.2k
58 lines (58 loc) · 1.67 KB
/
Copy pathdb_indexes.yaml
File metadata and controls
58 lines (58 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Database indexes
on:
push:
paths-ignore:
- 'client/**'
- 'doc/**'
- 'lib/galaxy_test/selenium/**'
- 'packages/**'
pull_request:
paths-ignore:
- 'client/**'
- 'doc/**'
- 'lib/galaxy_test/selenium/**'
- 'packages/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
working-directory: 'galaxy root'
permissions: {}
jobs:
check:
name: Check database indexes
runs-on: ubuntu-latest
strategy:
matrix:
db: ['postgresql']
postgresql-version: ['9.6', '10', '11', '14', '18']
python-version: ['3.10']
include:
- db: sqlite
python-version: '3.10'
services:
postgres:
image: ${{ matrix.db == 'postgresql' && format('postgres:{0}', matrix.postgresql-version) || '' }} # zizmor: ignore[unpinned-images]
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432:5432
steps:
- uses: actions/checkout@v7.0.0
with:
path: 'galaxy root'
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@v8.2.0
with:
python-version: ${{ matrix.python-version }}
- name: Install tox
run: uv tool install tox --with tox-uv
- name: Set database connection on PostgreSQL
if: matrix.db == 'postgresql'
run: echo 'GALAXY_CONFIG_OVERRIDE_DATABASE_CONNECTION=postgresql+psycopg://postgres:postgres@localhost:5432/galaxy?client_encoding=utf8' >> $GITHUB_ENV
- name: Check indexes
run: tox -e check_indexes