-
Notifications
You must be signed in to change notification settings - Fork 64
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
5 changed files
with
104 additions
and
45 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,8 @@ | ||
--- | ||
name: Install dependencies | ||
description: Install base and test dependencies | ||
runs: | ||
using: "composite" | ||
steps: | ||
- run: pip install -r requirements.txt -r test_requirements.txt | ||
shell: bash |
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,21 @@ | ||
--- | ||
name: Lint | ||
description: Check style for every file | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install dependencies | ||
uses: ./.github/actions/dependencies | ||
|
||
- name: Run pre-commit | ||
run: pre-commit run --all-files | ||
shell: bash | ||
|
||
- name: Lint | ||
run: python -m pylint -j 0 -f parseable neptune tests | ||
shell: bash |
54 changes: 25 additions & 29 deletions
54
.github/workflows/neptune-client.yml → .github/workflows/full.yml
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,36 @@ | ||
name: Test | ||
on: | ||
push: | ||
branches-ignore: | ||
- master | ||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Lint | ||
uses: ./.github/actions/lint | ||
|
||
integration: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: [3.6, 3.9] # minimum, maximum | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
uses: ./.github/actions/dependencies | ||
|
||
- name: Build and test | ||
run : | | ||
tox -e py |
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 |
---|---|---|
@@ -1,24 +1,22 @@ | ||
freezegun==1.1.0 | ||
mock==2.0.0 | ||
munch==2.3.2 | ||
psutil==5.6.6 | ||
pylint==1.9.5; python_version < '3.0' | ||
pylint==2.9.6; python_version >= '3.0' | ||
pylintfileheader==0.0.2 | ||
pytest>=5.0 | ||
pytest-cov==2.10.1 | ||
pytest-xdist==2.2.0 | ||
tensorflow; python_version >= '3.0' | ||
tox==3.6.1 | ||
pytest-timeout==1.4.2 | ||
freezegun | ||
mock | ||
munch | ||
pylint==2.9.6 | ||
pylintfileheader | ||
pytest | ||
pytest-cov | ||
pytest-xdist | ||
tensorflow; python_version <= '3.9' | ||
tox | ||
pytest-timeout | ||
matplotlib==3.2 | ||
pytest-mock==3.3.1 | ||
moto[s3]==2.2.1 | ||
pytest-mock | ||
moto[s3] | ||
plotly | ||
altair | ||
vega_datasets | ||
bokeh | ||
pre-commit | ||
|
||
# Installing Torch on Windows increases the test duration by ~10 minutes | ||
torch; platform_system != 'Windows' and python_version >= '3.6' | ||
torch; platform_system != 'Windows' and python_version <= '3.9' |