Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataCrunch: Add the FIN-02 datacenter #50

Merged
merged 3 commits into from
Mar 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -5,12 +5,17 @@ on:
tags:
- '*'

env:
PIP_DISABLE_PIP_VERSION_CHECK: on
PIP_DEFAULT_TIMEOUT: 10
PIP_PROGRESS_BAR: off

jobs:
python-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Run isort
@@ -34,9 +39,9 @@ jobs:
os: [ ubuntu-latest ]
python-version: [ 3.8, 3.9, "3.10", 3.11 ]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
@@ -54,9 +59,9 @@ jobs:
needs: [ python-test ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install dependencies
13 changes: 9 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -9,12 +9,17 @@ on:
- 'main'
workflow_dispatch:

env:
PIP_DISABLE_PIP_VERSION_CHECK: on
PIP_DEFAULT_TIMEOUT: 10
PIP_PROGRESS_BAR: off

jobs:
python-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Run isort
@@ -38,9 +43,9 @@ jobs:
os: [ ubuntu-latest ]
python-version: [ 3.8, 3.9, "3.10", 3.11 ]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -46,7 +46,7 @@ List of all available filters:
from gpuhunt import Catalog

catalog = Catalog()
catalog.load(version="20230831")
catalog.load(version="20240310")
items = catalog.query()

print(*items, sep="\n")
6 changes: 5 additions & 1 deletion src/integrity_tests/test_datacrunch.py
Original file line number Diff line number Diff line change
@@ -20,7 +20,11 @@ def select_row(rows, name: str) -> List[str]:


def test_locations(data_rows):
expected = set(("FIN-01", "ICE-01"))
expected = {
"FIN-01",
"FIN-02",
"ICE-01",
}
locations = select_row(data_rows, "location")
assert set(locations) == expected

1 change: 1 addition & 0 deletions src/tests/providers/test_datacrunch.py
Original file line number Diff line number Diff line change
@@ -147,6 +147,7 @@ def locations():
# datacrunch.locations.get()
return [
{"code": "FIN-01", "name": "Finland 1", "country_code": "FI"},
{"code": "FIN-02", "name": "Finland 2", "country_code": "FI"},
{"code": "ICE-01", "name": "Iceland 1", "country_code": "IS"},
]