2021-01-02 10:50:16 +00:00
|
|
|
name: linkding CI
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
run_tests:
|
|
|
|
name: Run Django Tests
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Set up Python
|
|
|
|
uses: actions/setup-python@v1
|
|
|
|
with:
|
|
|
|
python-version: 3.7
|
2021-05-14 00:38:44 +00:00
|
|
|
- name: Set up Node
|
|
|
|
uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: 14
|
|
|
|
- name: Install Python dependencies
|
2021-01-02 10:50:16 +00:00
|
|
|
run: pip install -r requirements.txt
|
2021-05-14 00:38:44 +00:00
|
|
|
- name: Install Node dependencies
|
|
|
|
run: npm install
|
2021-01-02 10:50:16 +00:00
|
|
|
- name: Run tests
|
|
|
|
run: python manage.py test
|