Skip to content

Commit

Permalink
Fix python 3.8 incompatibility, bump actions versions
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceCondor committed Aug 26, 2024
1 parent 24adf81 commit f11f96f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ jobs:
build:
strategy:
matrix:
py_version: ["3.8", "3.9", "3.10"]
py_version: ["3.8", "3.9", "3.10", "3.11"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python ${{ matrix.py_version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.py_version }}
- name: Install Tap Airbyte Wrapper
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/project_add.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- uses: actions/add-to-project@v0.5.0
- uses: actions/add-to-project@v1.0.2
with:
project-url: https://github.com/orgs/MeltanoLabs/projects/3
github-token: ${{ secrets.MELTYBOT_PROJECT_ADD_PAT }}
6 changes: 2 additions & 4 deletions tap_airbyte/tap.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,10 +564,8 @@ def run_connection_test(self) -> bool:
def run_read(self) -> t.Iterator[subprocess.Popen]:
"""Run the read command for the Airbyte connector."""
with TemporaryDirectory() as host_tmpdir:
with (
open(f"{host_tmpdir}/config.json", "wb") as config,
open(f"{host_tmpdir}/catalog.json", "wb") as catalog,
):
with open(f"{host_tmpdir}/config.json", "wb") as config, open(f"{host_tmpdir}/catalog.json",
"wb") as catalog:
config.write(orjson.dumps(self.config.get("airbyte_config", {})))
catalog.write(orjson.dumps(self.configured_airbyte_catalog))
if self.airbyte_state:
Expand Down

0 comments on commit f11f96f

Please sign in to comment.