Skip to content

Commit

Permalink
Adding portability tests to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloem committed Jun 14, 2022
1 parent 320ca19 commit c6a36ca
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ jobs:
- name: Format
run: |
bash scripts/format.sh
- name: Install Ray Beam Runner
run: |
pip install -e .[test]
- name: Run Portability tests
run: |
pytest -r A ray_beam_runner/portability/ray_runner_test.py ray_beam_runner/portability/execution_test.py
LicenseCheck:
name: License Check
Expand Down
4 changes: 2 additions & 2 deletions ray_beam_runner/portability/execution_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

import ray

import apache_beam.portability.api.beam_fn_api_pb2
from apache_beam.portability.api import beam_fn_api_pb2
from ray_beam_runner.portability.state import RayStateManager


class StateHandlerTest(unittest.TestCase):
SAMPLE_STATE_KEY = apache_beam.portability.api.beam_fn_api_pb2.StateKey()
SAMPLE_STATE_KEY = beam_fn_api_pb2.StateKey()
SAMPLE_INPUT_DATA = [b"bobby" b"tables", b"drop table", b"where table_name > 12345"]

@classmethod
Expand Down
2 changes: 2 additions & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ flake8==3.9.1
flake8-comprehensions
flake8-quotes==2.0.0
flake8-bugbear==21.9.2
pytest==7.1.2
pyhamcrest==2.0.3

0 comments on commit c6a36ca

Please sign in to comment.