diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 6b783b30..5d8b6291 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -74,10 +74,8 @@ jobs: - uses: actions/setup-node@v3 - name: actions-setup-redis uses: shogo82148/actions-setup-redis@v1.35.0 - - name: Setup docker cache - run: | - docker login docker.pkg.github.com -u "${GITHUB_ACTOR}" --password="${{ secrets.GITHUB_TOKEN }}" - docker pull "${CACHE_TARGET}" + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 - name: Install ord-interface run: | python -m pip install --upgrade pip @@ -90,10 +88,4 @@ jobs: - name: Run tests run: | cd "${GITHUB_WORKSPACE}/ord_interface" - ./run_tests.sh "--cache-from=${CACHE_TARGET}" - - name: Update docker cache - run: | - docker tag openreactiondatabase/ord-interface "${CACHE_TARGET}" - docker push "${CACHE_TARGET}" - # NOTE(kearnes): Actions in forks cannot update the cache. - if: ${{ ! github.event.pull_request.head.repo.fork }} + ./run_tests.sh diff --git a/ord_interface/api/conftest.py b/ord_interface/api/conftest.py index f8bd8c8c..90f4a318 100644 --- a/ord_interface/api/conftest.py +++ b/ord_interface/api/conftest.py @@ -13,6 +13,7 @@ # limitations under the License. """Pytest fixtures.""" + import os from contextlib import ExitStack from typing import AsyncIterator, Iterator diff --git a/ord_interface/api/queries.py b/ord_interface/api/queries.py index 693d225b..ff4afa78 100644 --- a/ord_interface/api/queries.py +++ b/ord_interface/api/queries.py @@ -39,6 +39,7 @@ Note that a predicate is matched if it applies to _any_ input/output. """ + from __future__ import annotations from abc import ABC, abstractmethod diff --git a/ord_interface/api/queries_test.py b/ord_interface/api/queries_test.py index 732a1a2c..dd4d45f8 100644 --- a/ord_interface/api/queries_test.py +++ b/ord_interface/api/queries_test.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. """Tests for ord_interface.api.queries.""" + import pytest from ord_interface.api.queries import ( diff --git a/ord_interface/api/search_test.py b/ord_interface/api/search_test.py index 2e858810..3a847c79 100644 --- a/ord_interface/api/search_test.py +++ b/ord_interface/api/search_test.py @@ -13,6 +13,7 @@ # limitations under the License. """Tests for ord_interface.api.search.""" + import gzip import pytest diff --git a/ord_interface/api/testing.py b/ord_interface/api/testing.py index 77648a45..819704d6 100644 --- a/ord_interface/api/testing.py +++ b/ord_interface/api/testing.py @@ -13,6 +13,7 @@ # limitations under the License. """Testing utilities.""" + import os from glob import glob diff --git a/ord_interface/client/build_database.py b/ord_interface/client/build_database.py index 02259d99..25c780fa 100644 --- a/ord_interface/client/build_database.py +++ b/ord_interface/client/build_database.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. """Populates a PostgreSQL database containing the ORD (for local testing).""" + import logging from ord_schema.orm import database diff --git a/ord_interface/editor/py/serve_test.py b/ord_interface/editor/py/serve_test.py index 414fe9f3..997039df 100644 --- a/ord_interface/editor/py/serve_test.py +++ b/ord_interface/editor/py/serve_test.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. """Tests for editor.py.serve.""" + import base64 import gzip import json diff --git a/ord_interface/interface.py b/ord_interface/interface.py index fbd0a474..bc17b662 100644 --- a/ord_interface/interface.py +++ b/ord_interface/interface.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. """Entrypoint for the web interface.""" + import flask from ord_interface.editor.py import serve # pytype: disable=import-error diff --git a/ord_interface/visualization/generate_text_test.py b/ord_interface/visualization/generate_text_test.py index b9f8d51a..5393f35f 100644 --- a/ord_interface/visualization/generate_text_test.py +++ b/ord_interface/visualization/generate_text_test.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. """Tests for ord_interface.visualization.generate_text.""" + import pytest from ord_schema import message_helpers, units from ord_schema.proto import reaction_pb2 diff --git a/setup.py b/setup.py index a9e49439..f16fdb93 100644 --- a/setup.py +++ b/setup.py @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. """Installer script.""" + import setuptools with open("README.md") as f: