Skip to content
Merged
Show file tree
Hide file tree
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
14 changes: 3 additions & 11 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
1 change: 1 addition & 0 deletions ord_interface/api/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.

"""Pytest fixtures."""

import os
from contextlib import ExitStack
from typing import AsyncIterator, Iterator
Expand Down
1 change: 1 addition & 0 deletions ord_interface/api/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions ord_interface/api/queries_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
1 change: 1 addition & 0 deletions ord_interface/api/search_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.

"""Tests for ord_interface.api.search."""

import gzip

import pytest
Expand Down
1 change: 1 addition & 0 deletions ord_interface/api/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.

"""Testing utilities."""

import os
from glob import glob

Expand Down
1 change: 1 addition & 0 deletions ord_interface/client/build_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions ord_interface/editor/py/serve_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions ord_interface/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions ord_interface/visualization/generate_text_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading