Skip to content

Commit

Permalink
Fix requirements for benchmark workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
J535D165 committed Sep 9, 2023
1 parent dadbd30 commit 457289c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r benchmark/requirements.txt
pip install .
- name: Run benchmark
run: |
Expand Down
2 changes: 2 additions & 0 deletions benchmark/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pandas
requests
11 changes: 9 additions & 2 deletions scripts/repo_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,22 @@
from pathlib import Path

import pandas as pd
from pydatacite import DOIs
import requests

# from pydatacite import DOIs
import datahugger as dh

BENCHMARK_FILE = Path("benchmark", "benchmark_datasets.csv")


def create_dataset(args):
records = [x for y in range(1) for x in DOIs().random().get(per_page=100)]
records = [
x
for y in range(1)
for x in requests.get(
"https://api.datacite.org/dois?random=true&page[size]=100"
).json()["data"]
]

result = []
for r in records:
Expand Down

0 comments on commit 457289c

Please sign in to comment.