Skip to content

Commit

Permalink
Merge branch 'main' into inf-model-eval
Browse files Browse the repository at this point in the history
  • Loading branch information
sjrl committed May 8, 2023
2 parents 0f31a6f + 6e982e9 commit dbbac67
Show file tree
Hide file tree
Showing 96 changed files with 3,363 additions and 1,498 deletions.
6 changes: 3 additions & 3 deletions .github/utils/release_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def get_versions():
url = "https://dash.readme.com/api/v1/version"
res = requests.get(url, auth=ReadmeAuth(), timeout=30)
res.raise_for_status()
return [v["version_clean"] for v in res.json()]
return [v["version"] for v in res.json()]


def create_new_unstable(current, new):
Expand Down Expand Up @@ -63,7 +63,7 @@ def promote_unstable_to_stable(unstable, stable):
def calculate_new_unstable(version):
# version must be formatted like so <major>.<minor>
major, minor = version.split(".")
return f"{major}.{int(minor) + 1}.0-unstable"
return f"{major}.{int(minor) + 1}-unstable"


if __name__ == "__main__":
Expand All @@ -77,7 +77,7 @@ def calculate_new_unstable(version):
sys.exit("Version must be formatted like so <major>.<minor>")

# This two are the version that we must have published in the end
new_stable = f"{args.new_version}.0"
new_stable = f"{args.new_version}"
new_unstable = calculate_new_unstable(args.new_version)

versions = get_versions()
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ jobs:
python-version: ${{ env.PYTHON_VERSION }}

- name: Install Haystack
run: pip install ".[all]"
run: |
pip install ".[all]"
pip install ./haystack-linter
- name: Pylint
if: steps.files.outputs.any_changed == 'true'
Expand Down
Loading

0 comments on commit dbbac67

Please sign in to comment.