Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hypha
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ots
hypha
Commits
b264c0cd
Commit
b264c0cd
authored
2 years ago
by
Fredrik Jonsson
Browse files
Options
Downloads
Patches
Plain Diff
Testing GitHub actions for CI.
parent
3ac6c1f1
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.github/workflows/hypha-ci.yml
+113
-0
113 additions, 0 deletions
.github/workflows/hypha-ci.yml
.test_durations
+820
-0
820 additions, 0 deletions
.test_durations
requirements-dev.txt
+6
-5
6 additions, 5 deletions
requirements-dev.txt
with
939 additions
and
5 deletions
.github/workflows/hypha-ci.yml
0 → 100644
+
113
−
0
View file @
b264c0cd
name
:
Hypha CI
on
:
pull_request
:
branches
:
-
main
push
:
branches
:
-
main
-
test
concurrency
:
group
:
${{ github.workflow }}
cancel-in-progress
:
true
jobs
:
lint-fe
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v3
-
uses
:
actions/setup-node@v3
with
:
node-version
:
16
cache
:
'
npm'
-
name
:
install node dependencies
run
:
npm install --quiet
-
name
:
run scss and js linting
run
:
npm run lint
test-fe
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v3
-
uses
:
actions/setup-node@v3
with
:
node-version
:
16
cache
:
'
npm'
-
name
:
install node dependencies
run
:
npm install --quiet
-
name
:
tun functional unit test cases [REACT.JS]
run
:
npm run test:ci
lint-be
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v3
-
uses
:
actions/setup-python@v4
with
:
python-version
:
'
3.10'
cache
:
'
pip'
cache-dependency-path
:
'
**/requirements*.txt'
-
name
:
install python dependencies
run
:
|
python3 -m venv venv
. venv/bin/activate
pip install --upgrade pip
pip install wheel
pip install -r requirements-dev.txt
-
name
:
run python linting
run
:
|
. venv/bin/activate
make lint
test-be
:
runs-on
:
ubuntu-latest
env
:
DATABASE_URL
:
postgresql://hypha:hypha@localhost/hypha?sslmode=disable
DJANGO_SETTINGS_MODULE
:
hypha.settings.test
SEND_MESSAGES
:
false
services
:
postgres
:
image
:
postgres:12-alpine
env
:
POSTGRES_USER
:
hypha
POSTGRES_PASSWORD
:
hypha
POSTGRES_DB
:
hypha
ports
:
-
5432:5432
options
:
--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries
5
strategy
:
matrix
:
group
:
[
1
,
2
,
3
]
steps
:
-
uses
:
actions/checkout@v3
-
uses
:
actions/setup-python@v4
with
:
python-version
:
'
3.10'
cache
:
'
pip'
cache-dependency-path
:
'
**/requirements*.txt'
-
uses
:
codecov/codecov-action@v3
-
uses
:
actions/setup-node@v3
with
:
node-version
:
16
cache
:
'
npm'
-
name
:
install node dependencies
run
:
npm install --quiet
-
name
:
builds static assets
run
:
npm run build
-
name
:
install python dependencies
run
:
|
python3 -m venv venv
. venv/bin/activate
pip install --upgrade pip
pip install wheel
pip install -r requirements-dev.txt
-
name
:
run python tests
run
:
|
. venv/bin/activate
python manage.py check
python manage.py makemigrations --check --noinput --verbosity=1
python manage.py collectstatic --noinput --no-post-process --verbosity=1
pytest --cov --cov-report term:skip-covered --splits 3 --group ${{ matrix.group }}
This diff is collapsed.
Click to expand it.
.test_durations
0 → 100644
+
820
−
0
View file @
b264c0cd
This diff is collapsed.
Click to expand it.
requirements-dev.txt
+
6
−
5
View file @
b264c0cd
-r requirements.txt
coverage==6.4.4
django-coverage-plugin==2.0.3
django-debug-toolbar==3.6.0
dslr==0.3.1
factory_boy==3.2.1
flake8==5.0.4
isort==5.10.1
model-bakery==1.7.0
pytest-cov==3.0.0
pytest-django==4.5.2
pytest-split==0.8.0
pytest-xdist[psutil]==2.5.0
responses==0.21.0
wagtail-factories==2.1.0
Werkzeug==2.2.2
pytest-django==4.5.2
pytest-xdist[psutil]==2.5.0
coverage==6.4.4
pytest-cov==3.0.0
django-coverage-plugin==2.0.3
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment