Skip to content

Commit

Permalink
Update CI to add 3.12 and change yapf check to use 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
sgillies committed Jul 4, 2023
1 parent e208cfc commit cfb34df
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 29 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: 3.8
- name: Pip cache
uses: actions/cache@v2
with:
Expand All @@ -30,11 +30,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: 3.8
- name: Pip cache
uses: actions/cache@v2
with:
Expand All @@ -53,15 +53,16 @@ jobs:

strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Pip cache
uses: actions/cache@v2
with:
Expand All @@ -79,11 +80,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: 3.8
- name: Pip cache
uses: actions/cache@v2
with:
Expand All @@ -101,11 +102,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: 3.8
- name: Pip cache
uses: actions/cache@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion planet/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.0.3'
__version__ = '2.1.0dev'
16 changes: 8 additions & 8 deletions planet/cli/subscriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,10 @@ async def list_subscription_results_cmd(ctx,
'--notifications',
type=types.JSON(),
help='Notifications JSON. Can be a string, filename, or - for stdin.')
@click.option('--tools',
type=types.JSON(),
help='Toolchain JSON. Can be a string, filename, or - for stdin.'
)
@click.option(
'--tools',
type=types.JSON(),
help='Toolchain JSON. Can be a string, filename, or - for stdin.')
@pretty
def request(name, source, delivery, notifications, tools, pretty):
"""Generate a subscriptions request."""
Expand Down Expand Up @@ -247,10 +247,10 @@ def request(name, source, delivery, notifications, tools, pretty):
@click.option('--rrule',
type=str,
help='iCalendar recurrance rule to specify recurrances.')
@click.option('--filter',
type=types.JSON(),
help='Search filter. Can be a string, filename, or - for stdin.'
)
@click.option(
'--filter',
type=types.JSON(),
help='Search filter. Can be a string, filename, or - for stdin.')
@pretty
def request_catalog(item_types,
asset_types,
Expand Down
10 changes: 5 additions & 5 deletions tests/integration/test_data_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -875,11 +875,11 @@ async def _stream_img():

@respx.mock
@pytest.mark.anyio
@pytest.mark.parametrize("hashes_match, md5_entry, expectation",
[(True, True, does_not_raise()),
(False, True, pytest.raises(exceptions.ClientError)),
(True, False, pytest.raises(exceptions.ClientError))]
)
@pytest.mark.parametrize(
"hashes_match, md5_entry, expectation",
[(True, True, does_not_raise()),
(False, True, pytest.raises(exceptions.ClientError)),
(True, False, pytest.raises(exceptions.ClientError))])
async def test_validate_checksum(hashes_match, md5_entry, expectation, tmpdir):
test_bytes = b'foo bar'
testfile = Path(tmpdir / 'test.txt')
Expand Down

0 comments on commit cfb34df

Please sign in to comment.