Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
664 commits
Select commit Hold shift + click to select a range
0aa8abd
Fix footer
jayvarner Jan 22, 2025
4c974d9
Tweak footer and fix search box width.
jayvarner Jan 22, 2025
88b0692
make ocr slider retain its state when switching between pages
yl5682 Jan 23, 2025
552c6e1
apply styles for the search results
yl5682 Jan 23, 2025
c7597e2
vary navigation item size to match hierarchy in about pages
yl5682 Jan 23, 2025
3eaf50f
add indentation to the side navigation
yl5682 Jan 23, 2025
5261501
Merge branch 'develop' into ui
yl5682 Jan 23, 2025
4aaf1dd
add a side nav sticky offset from the very top of the page
yl5682 Jan 23, 2025
461f97d
update button and label styles within the reader
yl5682 Jan 23, 2025
da80334
fix image url
yl5682 Jan 23, 2025
8896eb9
adjust the padding on homepage to ensure proper gaps between sections
yl5682 Jan 23, 2025
1c2da53
add missing selectize.js
yl5682 Jan 23, 2025
95e13c3
adjust main navbar's position attribute (can revert as needed)
yl5682 Jan 23, 2025
3cdf5ac
set about page sidebar uk-sticky to 20
yl5682 Jan 23, 2025
bf586ce
tweak uneven paddings and heights
yl5682 Jan 23, 2025
c114720
add missing padding to the login modal
yl5682 Jan 23, 2025
9c89798
remove padding-left for content area when static page's sidebar does …
yl5682 Jan 23, 2025
29f3498
add documentation to side nav style on static pages
yl5682 Jan 23, 2025
c1cea0b
Add config for djLint.
jayvarner Jan 23, 2025
4360799
add missing annotation list and annotations
yl5682 Jan 28, 2025
5e8642a
add logic to display a lone volume's title in the reader
yl5682 Jan 28, 2025
e8a74b7
comment out Copy btns; add logic to indicate having no annotations
yl5682 Jan 28, 2025
689b5cd
use same font size for static page side nav; enhance font/label contrast
yl5682 Jan 28, 2025
1f99a86
Merge branch 'develop' of https://github.com/ecds/readux into develop
yl5682 Jan 28, 2025
500d375
add custom homepage background image
yl5682 Jan 28, 2025
17f7641
apply the correct anchor color on search page
yl5682 Jan 28, 2025
23b9acc
leave out partner with us until we do establish that page and have it…
yl5682 Jan 28, 2025
5427126
Small change to hide Git info in footer for prod.
jayvarner Jan 29, 2025
9b9a718
tweak the color and spacing for ol elements on static pages
yl5682 Jan 29, 2025
663a0d4
Merge branch 'develop' of https://github.com/ecds/readux into develop
yl5682 Jan 29, 2025
55d3b1e
Small CSS change to allow horizontal scroll on facet selects.
jayvarner Jan 29, 2025
02d90ab
Show "None" for volumes without facet. Add horz scrolling for real.
jayvarner Jan 29, 2025
05d7103
amend ';' splitter for adv. metadata
yl5682 Jan 30, 2025
579a703
Merge branch 'develop' of https://github.com/ecds/readux into develop
yl5682 Jan 30, 2025
3ac9be1
use high res images for featured volume covers
yl5682 Jan 30, 2025
7752687
stop the overflow of in-volume search results; change highlight color…
yl5682 Jan 30, 2025
9d640a6
dynamically initialize elasticsearch facets as selectize components
yl5682 Jan 30, 2025
07dd25b
add a duplicate set of form controls to the top of the facet list
yl5682 Jan 30, 2025
fede91b
prevent full description button from breaking into two lines
yl5682 Jan 30, 2025
b90cc55
change the gradient levels to increase contrast for collection page
yl5682 Jan 30, 2025
6e78d8c
add padding to the search box on homepage
yl5682 Jan 30, 2025
4c30b40
Change thumbnail to square.
jayvarner Jan 30, 2025
07ffc11
Fix failing test.
jayvarner Jan 30, 2025
b843953
Update "Read Full Story" to "More Information" _featured_story.html
jpkarlsberg Jan 30, 2025
1421eb6
Revert thumbnail change
jayvarner Jan 30, 2025
26c4677
Another small fix for version info in footer.
jayvarner Jan 30, 2025
0bcc293
update font-family to use a standard list of sans-serif fonts (for bo…
yl5682 Feb 10, 2025
c1dcb08
Merge branch 'develop' of https://github.com/ecds/readux into develop
yl5682 Feb 10, 2025
a1124e4
change the list behavior for adv. metadata
yl5682 Feb 10, 2025
8a878fa
Attempt fix for signup form.
jayvarner Feb 28, 2025
d27187c
Serialize V3 manifest metadata
jayvarner Feb 28, 2025
f502786
Add deserializers
jayvarner Mar 4, 2025
74e56bf
Add raw content to annotation model. Update annotation deserializer t…
jayvarner Mar 5, 2025
4737bdb
Add resource type to deserializer
jayvarner Mar 6, 2025
1191e4f
Fix date deserialization.
jayvarner Mar 7, 2025
ba444ba
Add missing fields to manifest serializer. Add relations to the manif…
jayvarner Mar 10, 2025
e6ef599
replace vue clipboard with native Clipboard API
yl5682 Mar 18, 2025
f5904ed
remove VueClipboard from the component list
yl5682 Mar 18, 2025
763b7e6
Add publisher to serialized manifest.
jayvarner Mar 21, 2025
97499b2
Merge branch 'develop' of https://github.com/ecds/readux into develop
yl5682 Mar 24, 2025
d891385
Handel languages in bulk metadata update.
jayvarner Mar 31, 2025
55db14d
update how selectize is initialized for dynamically rendered search f…
yl5682 Jun 3, 2025
e7eb0a6
remove unused selectize
yl5682 Jun 3, 2025
023f9cc
apply the selectize initialization code to search_results.html only
yl5682 Jun 3, 2025
c58de37
remove selectize.css source file
yl5682 Jun 3, 2025
b5be6da
Merge pull request #1129 from ecds/ui-bug-triage
jayvarner Jun 3, 2025
e538d54
Don't assume annotation body has format.
jayvarner Jun 23, 2025
5420ee0
Update serializers and tests
jayvarner Jun 30, 2025
ccded29
Update configured serializers
jayvarner Jun 30, 2025
cede3bf
replace DOMNodeInserted with MutationObserver approach
yl5682 Jul 1, 2025
38c82ec
Bulk create annotations
jayvarner Jul 1, 2025
845629b
Updates to annotation serialization/deserialization.
jayvarner Jul 9, 2025
f92d692
Improve setting dimensions.
jayvarner Jul 10, 2025
b6ccce7
Update deploy for prod
jayvarner Jul 11, 2025
e388d07
Tweak deploy for prod
jayvarner Jul 11, 2025
3936fe2
Another try with workflow
jayvarner Jul 11, 2025
59b54da
Set branch
jayvarner Jul 11, 2025
996d774
Checkout specific branch
jayvarner Jul 11, 2025
f744d92
Remove branch switch
jayvarner Jul 11, 2025
d70127c
Remove dependabot file
jayvarner Jul 30, 2025
8529478
Merge branch 'develop' into ui-bug-triage
yl5682 Aug 26, 2025
170336b
update external image download link
yl5682 Aug 27, 2025
265b2b1
webpack watch js changes
yl5682 Aug 27, 2025
50c0041
remove visibility page
yl5682 Sep 1, 2025
1c7fb60
make ocr text react to canvasswitch
yl5682 Sep 1, 2025
fb2958d
update ocr labels
yl5682 Sep 1, 2025
25314a8
update label for ocr text overlay
yl5682 Sep 1, 2025
7ae3bfc
add loader to the ocr text area; disable when text is unavailable
yl5682 Sep 1, 2025
ff7b6e5
refactor name of the ocr options
yl5682 Sep 1, 2025
82e122e
componentize the ocr overlay toggle
yl5682 Sep 1, 2025
19bcfae
consolidated and streamlined the ocr experience
yl5682 Sep 1, 2025
cc34699
italicize the OCR overlay prompt
yl5682 Sep 2, 2025
350c793
revise no ocr lable language
yl5682 Sep 2, 2025
8148bfe
remove a duplicated load
yl5682 Sep 2, 2025
4d82f9e
remove .rx-nav-item
yl5682 Sep 16, 2025
ff6875b
remove sort_dropdown.html and related javascript
yl5682 Sep 16, 2025
fcb7a8d
remove fontawesome.js (use package.json to load instead)
yl5682 Sep 16, 2025
3c110e3
remove uikit-icons.min.js
yl5682 Sep 16, 2025
d393f5d
add necessary uikit-icons
yl5682 Sep 16, 2025
54db71c
remove jquery from base.html, add to package.json
yl5682 Sep 16, 2025
0effdf6
refactor css
yl5682 Sep 16, 2025
d531466
remove nav-link class
yl5682 Sep 16, 2025
12e943b
remove nav-link .alert-debug and .alert-error
yl5682 Sep 16, 2025
9ad44fe
remove unused styles
yl5682 Sep 16, 2025
c2d68d2
add logic to include book cover in search result
yl5682 Sep 16, 2025
3b8c008
add a mixin and drop in no-list-style
yl5682 Sep 16, 2025
088c352
remove unused block-paragraph_block
yl5682 Sep 16, 2025
72b33fa
remove duplicate css style declaration
yl5682 Sep 16, 2025
fbd4ce4
remove unused css
yl5682 Sep 16, 2025
899a4ab
break out social-auth related styles
yl5682 Sep 16, 2025
41dc94b
break out wagtail styles
yl5682 Sep 16, 2025
3cb182c
remove collectionbox and others
yl5682 Sep 16, 2025
49df7ae
remove #page-bg related styles
yl5682 Sep 16, 2025
064c0cb
remove boxInner and innerContent styles
yl5682 Sep 16, 2025
333dcc5
remove one part of rx-* styles
yl5682 Sep 16, 2025
f855f58
remove one part of rx-* styles
yl5682 Sep 16, 2025
81033b1
remove one part of rx-* styles
yl5682 Sep 16, 2025
c8ba15f
remove #offcanvas-usage styles
yl5682 Sep 16, 2025
48c80b8
merge .selectize-control.plugin-clear_button into search.scss
yl5682 Sep 16, 2025
c40cbc3
tweak uk-button-primary colors
yl5682 Sep 16, 2025
af9a439
remove one part of rx-* styles
yl5682 Sep 16, 2025
2ab1c3d
remove unused styles
yl5682 Sep 16, 2025
f9f28fa
change uk-text-x-large to uk-text-large
yl5682 Sep 17, 2025
fd6dacc
remove showOCR hideOCR preventSeadragonEvents and observeWebpageUpdat…
yl5682 Sep 17, 2025
03571e2
remove obsolete ecds-annotator.min.js loading
yl5682 Sep 17, 2025
0714755
rename custom.js to page-image-download.js
yl5682 Sep 17, 2025
b5a29e1
move vue.js to dist
yl5682 Sep 17, 2025
0004853
let npm manage selectize and nouislider js
yl5682 Sep 17, 2025
074ea67
migrate menu-inverse.css and login.css
yl5682 Sep 17, 2025
364e608
refactor css file structure
yl5682 Sep 17, 2025
2f3f3e3
remove search-form.scss
yl5682 Sep 17, 2025
4b58204
remove duplicate in search.scss
yl5682 Sep 17, 2025
317d618
remove duplicate in main.scss
yl5682 Sep 17, 2025
d606d82
refactor project.scss
yl5682 Sep 17, 2025
3b4f9a1
remove unused css
yl5682 Sep 19, 2025
4dff93d
extract colors for uk-switch.scss
yl5682 Sep 19, 2025
a0e5efb
refactor css colors
yl5682 Sep 19, 2025
80cb04a
remove v-readux style
yl5682 Sep 19, 2025
aac1710
remove uk-alert z-index
yl5682 Sep 19, 2025
0971784
organize main.scss
yl5682 Sep 19, 2025
96340c5
consolidate project.scss and main.scss into readux.scss
yl5682 Sep 19, 2025
feb2f43
fix a few cosmetic bugs from refactoring
yl5682 Sep 19, 2025
3b01fff
refactor css further
yl5682 Sep 19, 2025
00ef6d4
fix a reference bug to css components
yl5682 Sep 19, 2025
7a50e1e
overhaul vue (not working)
yl5682 Sep 19, 2025
685ede9
Revert "overhaul vue (not working)"
yl5682 Sep 20, 2025
9c952a0
update scss loading
yl5682 Sep 20, 2025
b0b4f9c
overhaul Vue
yl5682 Sep 20, 2025
fc2cd7b
fix a style bug
yl5682 Sep 20, 2025
cf83e40
speed up the js build time (17s to 2s)
yl5682 Sep 20, 2025
7816295
update copyText and notification
yl5682 Sep 20, 2025
f6d8a2e
fix a filename typo
yl5682 Sep 20, 2025
a058283
adopt ocrLoaded
yl5682 Sep 20, 2025
0b21cec
use canvasUpdate event to update page image link
yl5682 Sep 20, 2025
d421b63
update uikit version
yl5682 Sep 20, 2025
9a752b4
refactor download/export page and components
yl5682 Sep 20, 2025
8b63e40
use page not found when it's not found
yl5682 Sep 20, 2025
1b8cd26
add missing static library
yl5682 Sep 20, 2025
cf451d3
show "open page image" only on pages
yl5682 Oct 21, 2025
e0ed555
change the site's subtitle color to white
yl5682 Oct 21, 2025
e87d5d9
replace download icon with cloud-download icon
yl5682 Oct 21, 2025
584be37
remove font-weight bold for top navbar
yl5682 Oct 21, 2025
2cdf45f
add missing flatpage styles
yl5682 Oct 22, 2025
abd6300
add thumbnails to the search result list view
yl5682 Oct 22, 2025
502c981
make the flatpage sidebar responsive
yl5682 Oct 22, 2025
a352819
center the search eye glass icon
yl5682 Oct 22, 2025
7b01399
move the chevron in breadcrumb down by 1px
yl5682 Oct 22, 2025
9686b6f
align no volume/collection message
yl5682 Oct 22, 2025
d87cd4d
create a thumbnail view
yl5682 Oct 22, 2025
2883927
improve thumbnail view
yl5682 Oct 22, 2025
47b63e7
use authors list vs. string
yl5682 Oct 22, 2025
7c2f937
improve volume list view
yl5682 Oct 22, 2025
8e61c84
add the list/thumbnail toggle to the form
yl5682 Oct 22, 2025
58add1c
update logic for list view author rendering
yl5682 Oct 22, 2025
333880d
use a black square to contain the cover image
yl5682 Oct 29, 2025
a7bccf5
fix bug with the "black box" thumbnail view
yl5682 Oct 29, 2025
f01566a
"clamp" title to three lines with CSS for thumbnail view
yl5682 Oct 29, 2025
ddde64a
try to add a publication year in YYYY format
yl5682 Nov 1, 2025
f32a287
opt for version 1 for the thumbnail view
yl5682 Nov 1, 2025
796e07a
Merge pull request #1130 from ecds/ui-bug-triage
jayvarner Nov 4, 2025
abe18a2
Fix for signup form
jayvarner Nov 17, 2025
f21e7d3
Another fix for signup form
jayvarner Nov 17, 2025
38b69f7
Yet another signup form fix
jayvarner Nov 17, 2025
aeeb0f0
Update Allauth
jayvarner Nov 17, 2025
89adc64
Save user before returning
jayvarner Nov 17, 2025
51e6861
Signup form change
jayvarner Nov 17, 2025
a57f507
Add some debugging to users
jayvarner Nov 17, 2025
45a69b0
change from thumbnail view to grid view (label)
yl5682 Nov 24, 2025
0b5287a
adopt cover-square style for list view thumbnails
yl5682 Nov 24, 2025
8763ca4
use vertical pipe to separate collections
yl5682 Nov 24, 2025
604c25d
make every cover use the same exact style
yl5682 Nov 24, 2025
2aefcd4
show full description only if the description length is greater than …
yl5682 Nov 24, 2025
7b25d4b
add margin to improve readability
yl5682 Nov 24, 2025
0f63703
remove obsolete p element grey color
yl5682 Nov 24, 2025
33d0e9a
prevent sidebar from overlapping other elements on page
yl5682 Nov 24, 2025
e151b61
Remove signup override.
jayvarner Nov 24, 2025
8860119
Update readux.scss
yl5682 Nov 24, 2025
d13e663
Merge branch 'develop' into ui-bug-triage
yl5682 Nov 24, 2025
74bb4a5
Merge pull request #1131 from ecds/ui-bug-triage
jayvarner Nov 25, 2025
5ec3b46
update long collection name handling and collection name style
yl5682 Dec 8, 2025
52e381c
update flatpage content style
yl5682 Dec 8, 2025
5038b99
add space for ; separated strings
yl5682 Dec 9, 2025
5f7038a
add space for ; separated authors
yl5682 Dec 9, 2025
8def7b2
add pagination to the collections page
yl5682 Dec 9, 2025
e0e6623
add pagination to search results page
yl5682 Dec 9, 2025
bec73e2
include missing collections in the breadcrumb
yl5682 Dec 9, 2025
b053159
Merge branch 'develop' into ui-bug-triage
yl5682 Dec 9, 2025
e2aeebd
Merge pull request #1132 from ecds/ui-bug-triage
jayvarner Dec 9, 2025
8387d24
adjust collection desc styles
yl5682 Dec 11, 2025
e11eaed
tweak collection styles
yl5682 Dec 11, 2025
dfef59f
adjust the collection banner so that it expands based on the size of …
yl5682 Dec 11, 2025
e315678
reset ocr overlay before applying new ones
yl5682 Dec 11, 2025
9bb9fed
Merge branch 'develop' into ui-bug-triage
yl5682 Dec 12, 2025
0724eb8
Merge pull request #1133 from ecds/ui-bug-triage
jayvarner Dec 12, 2025
c2f81e0
striptags to avoid injected html on collections page
yl5682 Dec 30, 2025
5f87a14
use a tooltip for when the title is longer than 50 chars
yl5682 Dec 30, 2025
e71dfc1
default search display item to 60 (instead of 20)
yl5682 Dec 31, 2025
ea97437
add number of items to view on collections' landing page
yl5682 Dec 31, 2025
5110c33
add missing space for language, published_city, and publisher; remove…
yl5682 Dec 31, 2025
ee8b9e2
truncate collection names when the char count > 25; sort A->Z
yl5682 Dec 31, 2025
8574e33
add interactive-color midnight blue effect to links
yl5682 Dec 31, 2025
3b9f65a
flatpage: update ul margin-top to 0.5rem
yl5682 Dec 31, 2025
9ff3505
flatpage: use decimal for ordered list
yl5682 Dec 31, 2025
9e26355
rework breadcrumb collection rendering logic
yl5682 Dec 31, 2025
1bebdfd
Merge branch 'develop' into ui-bug-triage
yl5682 Dec 31, 2025
d9c8001
Merge pull request #1134 from ecds/ui-bug-triage
jayvarner Jan 6, 2026
350694e
Remove a duplicated Collections label in breadcrumb
yl5682 Jan 24, 2026
090a21c
Update char limit to 40 for collection labels
yl5682 Jan 24, 2026
3fe11a7
cap collection summary at 70 chars; description at 4 lines
yl5682 Jan 24, 2026
215099c
update line-height and spacing for grid view labels
yl5682 Jan 24, 2026
2dd106c
grid view label capped at three lines
yl5682 Jan 24, 2026
8fca651
clamp grid view authors field to three lines
yl5682 Jan 24, 2026
b24a053
Merge branch 'develop' into ui-bug-triage
yl5682 Jan 29, 2026
6c5b38e
Merge pull request #1135 from ecds/ui-bug-triage
jayvarner Feb 3, 2026
5d97f24
Update LICENSE.md
jayvarner Feb 3, 2026
e8ad990
Remove errant line from schema
jayvarner Feb 13, 2026
6f15d9b
search result - make year visibility persistent
yl5682 Feb 17, 2026
54b9eab
update collection char limit to 40 in information panel
yl5682 Feb 17, 2026
ccee5a4
adopt search grid view pattern to featured volumes
yl5682 Feb 17, 2026
d77ed39
update char limit to 50 to match truncation
yl5682 Feb 17, 2026
4aef040
adopt the same truncation behavior for featured collections on home
yl5682 Feb 17, 2026
0b6c22a
fix white-colored text issue
yl5682 Feb 17, 2026
414b2d0
Merge pull request #1137 from ecds/ui-bug-triage
jayvarner Feb 17, 2026
df55598
add authors field to the model (backend)
yl5682 Mar 3, 2026
dba5061
remove clunky underline for certain anchors, align close btn with acc…
yl5682 Mar 3, 2026
8c76562
fine tune positioning of buttons and reader panel elements
yl5682 Mar 3, 2026
f7a1ebc
Merge branch 'develop' into ui-bug-triage
yl5682 Mar 3, 2026
b2bd565
Merge pull request #1138 from ecds/ui-bug-triage
jayvarner Mar 3, 2026
cf93d15
Merge branch 'release' into develop
jayvarner Mar 24, 2026
bb2377a
Add Matomo to local settings. Bump version
jayvarner Mar 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
70 changes: 0 additions & 70 deletions .circleci/config.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .djlintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"ignore": "H006"
}
File renamed without changes.
32 changes: 0 additions & 32 deletions .github/dependabot.yml

This file was deleted.

60 changes: 60 additions & 0 deletions .github/workflows/depoly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Deploy

on:
workflow_run:
workflows: [Test]
types: [completed]

permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout

jobs:
deploy:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.head_branch }}

- name: Checkout Docker configs
run: |
eval `ssh-agent -s`
ssh-add - <<< '${{ secrets.DEPLOY_KEY_FOR_CONFIG_REPO }}'
git clone -b "${{ github.event.workflow_run.head_branch }}" "${{ secrets.DEPLOY_CONFIG_REPO}}"
mv "${{ secrets.CONFIG_REPO_NAME }}"/* .
chmod +x config.sh
chmod +x deploy.sh

- name: Run Config
run: ./config.sh
env:
AWS_KEY: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_FSX_VOLUME: ${{ secrets.AWS_FSX_VOLUME }}
DATABASE_URL: ${{ secrets.DATABASE_URL_DEV }}
EMAIL_USER: ${{ secrets.EMAIL_USER }}
EMAIL_PASSWORD: ${{ secrets.EMAIL_PASSWORD }}
BRANCH: ${{ github.event.workflow_run.head_branch }}

- name: Configure AWS credentials from AWS account
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_DEV }}
aws-region: us-east-1
role-session-name: GitHub-OIDC-frontend

- name: Run Deploy
env:
BRANCH: ${{ github.event.workflow_run.head_branch }}
AWS_KEY: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_FSX_VOLUME: ${{ secrets.AWS_FSX_VOLUME }}
DATABASE_URL_DEV: ${{ secrets.DATABASE_URL_DEV}}
DATABASE_URL_PROD: ${{ secrets.DATABASE_URL_PROD}}
EMAIL_USER: ${{ secrets.EMAIL_USER }}
EMAIL_PASSWORD: ${{ secrets.EMAIL_PASSWORD }}
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY}}
run: ./deploy.sh
102 changes: 102 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
name: Test

on:
push:
branches:
- develop
- main
workflow_dispatch:

env:
DATABASE_URL: postgres://user:password@localhost:5432/readux
DJANGO_ENV: test

jobs:
pytest:
runs-on: ubuntu-22.04

services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.5
env:
STACK_VERSION: 7.17.5
xpack.security.enabled: false
cluster.name: readux-elasticsearch
http.port: 9200
discovery.type: single-node
options: >-
--health-cmd "curl http://localhost:9200/_cluster/health"
--health-interval 10s
--health-timeout 5s
--health-retries 10
ports:
- 9200:9200

postgres:
image: postgres:12
env:
POSTGRES_PASSWORD: password
POSTGRES_USER: user
POSTGRES_DB: readux_test
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "2.7.2"

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"

- name: Install system requirements
run: |
sudo apt update
sudo apt install -y libjpeg-dev libopenjp2-7-dev libopenjp2-tools libssl-dev postgresql-client ruby-full openssh-server

- name: Install Ruby dependencies
run: |
sudo gem install bundler -v "$(grep -A 1 "BUNDLED WITH" Gemfile.lock | tail -n 1)"
bundle install
sudo gem install sass

- name: Install Python dependencies
run: |
mkdir logs && touch logs/debug.log
cp config/settings/local.dst config/settings/local.py
pip install --upgrade pip
pip install pyld==1.0.5
pip install -r requirements/local.txt

# - name: Test Export
# run: pytest apps/export/

# - name: Test IIIF
# run: pytest apps/iiif/

# - name: Test Readux
# run: pytest apps/readux/

# - name: Test Users
# run: pytest apps/users/

# - name: Test Webpack build
# run: |
# npm install
# npx webpack
14 changes: 11 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ customizations/**/*.js

### python gitignores auto-generated by github


# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down Expand Up @@ -128,7 +127,7 @@ static/plugins/annotator/scss/node_modules
# Local Junk
.DS_Store
local.py
venv
*venv
cert*
*.bk
.ruby-version
Expand All @@ -146,7 +145,6 @@ assets/upload/*
!assets/upload/index.html

*_dev
snippets

# profiler
*.profile
Expand All @@ -157,3 +155,13 @@ dev_*.json
presentation-validator/
nohup.out
webpack-stats.json
*.key
*.crt
*.pem

# compiled scss and JS
apps/static/css/project.css
apps/static/js/main.js
apps/static/js/main.js.map

snippets/*
Loading
Loading