Skip to content

Commit a226a64

Browse files
committed
update generator
1 parent a0055d1 commit a226a64

File tree

798 files changed

+21786
-90088
lines changed

Some content is hidden

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

798 files changed

+21786
-90088
lines changed

Diff for: .github/workflows/python.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# NOTE: This file is auto generated by OpenAPI Generator.
2+
# URL: https://openapi-generator.tech
3+
#
4+
# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
5+
6+
name: neurostore_sdk Python package
7+
8+
on: [push, pull_request]
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install flake8 pytest
28+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
29+
- name: Lint with flake8
30+
run: |
31+
# stop the build if there are Python syntax errors or undefined names
32+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
33+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
34+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
35+
- name: Test with pytest
36+
run: |
37+
pytest

Diff for: .github/workflows/test.yml

-23
This file was deleted.

Diff for: .gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ var/
3333
# Installer logs
3434
pip-log.txt
3535
pip-delete-this-directory.txt
36-
dev-requirements.txt.log
3736

3837
# Unit test / coverage reports
3938
htmlcov/

Diff for: .gitlab-ci.yml

+12-11
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
1+
# NOTE: This file is auto generated by OpenAPI Generator.
2+
# URL: https://openapi-generator.tech
3+
#
14
# ref: https://docs.gitlab.com/ee/ci/README.html
5+
# ref: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml
26

37
stages:
48
- test
59

6-
.tests:
10+
.pytest:
711
stage: test
812
script:
913
- pip install -r requirements.txt
1014
- pip install -r test-requirements.txt
1115
- pytest --cov=neurostore_sdk
1216

13-
test-3.5:
14-
extends: .tests
15-
image: python:3.5-alpine
16-
test-3.6:
17-
extends: .tests
18-
image: python:3.6-alpine
19-
test-3.7:
20-
extends: .tests
17+
pytest-3.7:
18+
extends: .pytest
2119
image: python:3.7-alpine
22-
test-3.8:
23-
extends: .tests
20+
pytest-3.8:
21+
extends: .pytest
2422
image: python:3.8-alpine
23+
pytest-3.9:
24+
extends: .pytest
25+
image: python:3.9-alpine

0 commit comments

Comments
 (0)