Skip to content

Commit 58ba4dd

Browse files
authored
Merge pull request #1376 from Sage-Bionetworks/develop
Schematic `v24.2.1`
2 parents 27c6c41 + 60ab804 commit 58ba4dd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+10057
-8317
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
# install your root project, if required
7777
#----------------------------------------------
7878
- name: Install library
79-
run: poetry install --no-interaction
79+
run: poetry install --no-interaction --all-extras
8080

8181
#----------------------------------------------
8282
# perform linting
@@ -96,7 +96,7 @@ jobs:
9696
run: |
9797
# ran only on certain files for now
9898
# add here when checked
99-
poetry run black schematic/configuration/*.py schematic/exceptions.py schematic/help.py schematic/loader.py schematic/version.py --check
99+
poetry run black schematic --check
100100
101101
#----------------------------------------------
102102
# type checking/enforcement
@@ -116,29 +116,23 @@ jobs:
116116
run: |
117117
# ran only on certain files for now
118118
# add here when checked
119-
poetry run pylint schematic/configuration/*.py schematic/exceptions.py schematic/help.py schematic/loader.py schematic/version.py
119+
poetry run pylint schematic/visualization/* schematic/configuration/*.py schematic/exceptions.py schematic/help.py schematic/loader.py schematic/version.py
120+
# do all utils but schema_utils.py
121+
poetry run pylint schematic/utils/cli_utils.py schematic/utils/curie_utils.py schematic/utils/df_utils.py
122+
poetry run pylint schematic/utils/general.py schematic/utils/google_api_utils.py schematic/utils/io_utils.py
123+
poetry run pylint schematic/utils/validate_rules_utils.py schematic/utils/validate_utils.py schematic/utils/viz_utils.py
120124
121125
#----------------------------------------------
122126
# run test suite
123127
#----------------------------------------------
124-
- name: Run regular tests and rule combination tests
125-
env:
126-
SYNAPSE_ACCESS_TOKEN: ${{ secrets.SYNAPSE_ACCESS_TOKEN }}
127-
if: ${{ contains(github.event.head_commit.message, 'runcombos') }}
128-
run: >
129-
source .venv/bin/activate;
130-
pytest --durations=0 --cov-report=term --cov-report=html:htmlcov --cov=schematic/
131-
-m "not (google_credentials_needed or schematic_api or table_operations)" --reruns 2 -n auto
132-
133128
- name: Run tests
134129
env:
135130
SYNAPSE_ACCESS_TOKEN: ${{ secrets.SYNAPSE_ACCESS_TOKEN }}
136131
SERVICE_ACCOUNT_CREDS: ${{ secrets.SERVICE_ACCOUNT_CREDS }}
137-
if: ${{ false == contains(github.event.head_commit.message, 'runcombos') }}
138132
run: >
139133
source .venv/bin/activate;
140134
pytest --durations=0 --cov-report=term --cov-report=html:htmlcov --cov=schematic/
141-
-m "not (google_credentials_needed or rule_combos or schematic_api or table_operations)" --reruns 2 -n auto
135+
-m "not (google_credentials_needed or schematic_api or table_operations)" --reruns 2 -n auto
142136
143137
- name: Upload pytest test results
144138
uses: actions/upload-artifact@v2

.readthedocs.yaml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ build:
1212
python: "3.9"
1313
jobs:
1414
post_install:
15-
- pip install poetry==1.2.0
15+
- pip install poetry==1.3.0
1616
- poetry config virtualenvs.create false
1717
- poetry install --with doc
1818
#Poetry will install my dependencies into the virtualenv created by readthedocs if I set virtualenvs.create=false

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,18 @@ poetry install
7171
```
7272
This command will install the dependencies based on what we specify in poetry.lock. If this step is taking a long time, try to go back to step 2 and check your version of poetry. Alternatively, you could also try deleting the lock file and regenerate it by doing `poetry install` (Please note this method should be used as a last resort because this would force other developers to change their development environment)
7373

74+
If you want to install the API you will need to install those dependencies as well:
75+
76+
```
77+
poetry install --extras "api"
78+
```
79+
80+
If you want to install the uwsgi:
81+
82+
```
83+
poetry install --extras "api"
84+
```
85+
7486
5. Fill in credential files:
7587
*Note*: If you won't interact with Synapse, please ignore this section.
7688

certificate.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ server {
77
proxy_read_timeout 300;
88
proxy_connect_timeout 300;
99
proxy_send_timeout 300;
10+
send_timeout 300;
11+
uwsgi_read_timeout 300;
1012
location / {
1113
try_files $uri @app;
1214
}

0 commit comments

Comments
 (0)