-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
506 additions
and
312 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Backend unit tests | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- 'develop' | ||
- 'master' | ||
- 'feature/**' | ||
- 'bugfix/**' | ||
- 'hotfix/**' | ||
- 'release/**' | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
python-version: [3.7] | ||
|
||
services: | ||
# Label used to access the service container | ||
postgres: | ||
# Docker Hub image | ||
image: postgres | ||
# Provide the password for postgres | ||
env: | ||
POSTGRES_DB: sasta | ||
POSTGRES_USER: sasta | ||
POSTGRES_PASSWORD: sasta | ||
# Set health checks to wait until postgres has started | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
ports: | ||
# Maps tcp port 5432 on service container to the host | ||
- 5432:5432 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install Python dependencies | ||
run: | | ||
cd backend | ||
python -m pip install --upgrade pip | ||
yarn install-back | ||
- name: Test with pytest | ||
env: | ||
# Provide PostgreSQL environment variables in order to default to TCP connection | ||
PGDATABASE: sasta | ||
PGHOST: localhost | ||
PGPORT: ${{ job.services.postgres.ports['5432'] }} | ||
PGUSER: sasta | ||
PGPASSWORD: sasta | ||
run: | | ||
cd backend | ||
yarn django migrate | ||
yarn install-back | ||
pytest | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Frontend unit tests | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- 'develop' | ||
- 'master' | ||
- 'feature/**' | ||
- 'bugfix/**' | ||
- 'hotfix/**' | ||
- 'release/**' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
node-version: [16.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Test Angular | ||
run: | | ||
cd frontend | ||
yarn install --frozen-lockfile | ||
yarn build-git | ||
yarn test:ci |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# This CITATION.cff file was generated with cffinit. | ||
# Visit https://bit.ly/cffinit to generate yours today! | ||
|
||
cff-version: 1.2.0 | ||
title: SASTA | ||
message: >- | ||
If you use this software, please cite it using the | ||
metadata from this file. | ||
type: software | ||
authors: | ||
- given-names: Jelte | ||
family-names: van Boheemen | ||
email: [email protected] | ||
affiliation: 'Centre for Digital Humanities, Utrecht University' | ||
orcid: 'https://orcid.org/0000-0002-2802-3242' | ||
- name: >- | ||
Research Software Lab, Centre for Digital Humanities, | ||
Utrecht University | ||
city: Utrecht | ||
country: NL | ||
email: [email protected] | ||
website: >- | ||
https://cdh.uu.nl/centre-for-digital-humanities/research-software-lab/ | ||
- given-names: Odijk | ||
family-names: Jan | ||
email: [email protected] | ||
affiliation: Utrecht University | ||
orcid: 'https://orcid.org/0000-0003-3331-1182' | ||
- given-names: Kroon | ||
family-names: Martin S. | ||
email: [email protected] | ||
affiliation: Utrecht University | ||
orcid: 'https://orcid.org/0000-0003-3059-6872' | ||
identifiers: | ||
- type: doi | ||
value: 10.5281/zenodo.10600256 | ||
repository-code: 'https://github.com/UUDigitalHumanitieslab/sasta' | ||
url: 'https://sasta.hum.uu.nl' | ||
abstract: >- | ||
SASTA is a tool for the analysis of spontaneous language | ||
transcripts, to aid clinical linguists and research into | ||
language development and language disorders. | ||
license: BSD-3-Clause | ||
version: 0.8.1 | ||
date-released: '2024-01-31' |
Oops, something went wrong.