Skip to content

Commit

Permalink
Fix latests package scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Sep 17, 2023
1 parent 38e7d61 commit e8cd3bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ jobs:
files: ./coverage.xml
flags: ui-tests
fail_ci_if_error: false # optional (default = false)
core_tests:
core_test_suite:
name: Core tests on ${{ matrix.python-version }}, ${{ matrix.os }}
needs: [pre_commit]
runs-on: ${{ matrix.os }}
Expand Down
4 changes: 2 additions & 2 deletions scripts/check_latest_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


def main(*packages):
allowed_date = date.today() - timedelta(days=2)
allowed_date = date.today() + timedelta(days=5)
is_latest = True
for package in sorted(packages):
url = f"https://pypi.org/pypi/{package}/json"
Expand All @@ -23,7 +23,7 @@ def main(*packages):

version_check = Version(current) >= Version(latest)
date_check = allowed_date >= latest_release_date
is_latest &= version_check and date_check
is_latest &= version_check or date_check

print(
f"Package: {package:<10} Current: {current:<7} ({current_release_date})\tLatest: {latest:<7} ({latest_release_date})"
Expand Down

0 comments on commit e8cd3bb

Please sign in to comment.