Skip to content

Commit 1ac5db6

Browse files
committed
Live tests only on releases, and remove broken caching
1 parent b88a581 commit 1ac5db6

File tree

4 files changed

+9
-18
lines changed

4 files changed

+9
-18
lines changed

.github/workflows/test-live-ar.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
name: Test-ar-live
22

33
on:
4-
pull_request:
54
push:
6-
branches: [main]
5+
tags:
6+
- 'v*'
7+
workflow_dispatch:
78

89
jobs:
910
build:
@@ -41,7 +42,6 @@ jobs:
4142
run: clojure -M:run install --db snomed.db --dist ar.mlds/1271898 --username ${{ secrets.MLDS_USERNAME }} --password mlds-password.txt
4243

4344
- name: Index database
44-
if: steps.cache-db.outputs.cache-hit != 'true'
4545
run: clojure -M:run --db snomed.db index
4646

4747
- name: Print status report

.github/workflows/test-live-intl.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
name: Test-intl-live
22

33
on:
4-
pull_request:
54
push:
6-
branches: [main]
5+
tags:
6+
- 'v*'
7+
workflow_dispatch:
78

89
jobs:
910
build:
@@ -41,7 +42,6 @@ jobs:
4142
run: clojure -M:run install --db snomed.db --dist ihtsdo.mlds/167 --username ${{ secrets.MLDS_USERNAME }} --password mlds-password.txt
4243

4344
- name: Index database
44-
if: steps.cache-db.outputs.cache-hit != 'true'
4545
run: clojure -M:run --db snomed.db index
4646

4747
- name: Print status report

.github/workflows/test-live-uk-cron.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ jobs:
4646
run: rm -rf trud
4747

4848
- name: Index database
49-
if: steps.cache-db.outputs.cache-hit != 'true'
5049
run: clojure -M:run --db snomed.db index
5150

5251
- name: Print status report

.github/workflows/test-live-uk.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
name: Test-uk-live
22

33
on:
4-
pull_request:
54
push:
6-
branches: [main]
5+
tags:
6+
- 'v*'
7+
workflow_dispatch:
78

89
jobs:
910
build:
@@ -40,22 +41,13 @@ jobs:
4041
- name: Write out TRUD API key from secrets
4142
run: echo ${{ secrets.TRUD_API_KEY }} >> api-key.txt
4243

43-
- name: Cache database
44-
id: cache-db
45-
uses: actions/cache@v4
46-
with:
47-
path: snomed.db
48-
key: ${{ github.sha }}-uk-clinical-db
49-
5044
- name: Install latest distributions for the UK
51-
if: steps.cache-db.outputs.cache-hit != 'true'
5245
run: clojure -M:run --db snomed.db install uk.nhs/sct-clinical --api-key api-key.txt --cache-dir trud
5346

5447
- name: Remove downloaded files
5548
run: rm -rf trud
5649

5750
- name: Index database
58-
if: steps.cache-db.outputs.cache-hit != 'true'
5951
run: clojure -M:run --db snomed.db index
6052

6153
- name: Print status report

0 commit comments

Comments
 (0)