-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: Fix pip constraints path * Stop using pendulum * Stop testing with Python 3.8 * Do not fail fast * Update Ruff config * Use consistent Python version
- Loading branch information
1 parent
debccd3
commit 3e05853
Showing
10 changed files
with
936 additions
and
878 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,10 +23,11 @@ jobs: | |
tests: | ||
runs-on: ubuntu-latest | ||
env: | ||
PIP_CONSTRAINT: .github/workflows/constraints.txt | ||
PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | ||
python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
|
||
steps: | ||
- name: Checkout code | ||
|
@@ -43,6 +44,7 @@ jobs: | |
- uses: isbang/[email protected] | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
id: setup-python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
@@ -53,11 +55,11 @@ jobs: | |
pip --version | ||
- name: Install Poetry | ||
run: | | ||
pipx install poetry | ||
pipx install --python ${{ steps.setup-python.outputs.python-path }} poetry | ||
poetry --version | ||
- name: Install Tox | ||
run: | | ||
pipx install tox | ||
pipx install --python ${{ steps.setup-python.outputs.python-path }} tox | ||
tox --version | ||
- name: Install dependencies | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
import decimal | ||
import json | ||
|
||
import pendulum | ||
import pytest | ||
import sqlalchemy | ||
from faker import Faker | ||
|
@@ -19,14 +18,14 @@ | |
from .test_replication_key import TABLE_NAME, TapTestReplicationKey | ||
|
||
SAMPLE_CONFIG = { | ||
"start_date": pendulum.datetime(2022, 11, 1).to_iso8601_string(), | ||
"start_date": datetime.datetime(2022, 11, 1).isoformat(), | ||
# Using 127.0.0.1 instead of localhost because of mysqlclient dialect. | ||
# See: https://stackoverflow.com/questions/72294279/how-to-connect-to-mysql-databas-using-github-actions | ||
"sqlalchemy_url": "mysql+pymysql://root:[email protected]:3306/melty", | ||
} | ||
|
||
NO_SQLALCHEMY_CONFIG = { | ||
"start_date": pendulum.datetime(2022, 11, 1).to_iso8601_string(), | ||
"start_date": datetime.datetime(2022, 11, 1).isoformat(), | ||
# Using 127.0.0.1 instead of localhost because of mysqlclient dialect. | ||
# See: https://stackoverflow.com/questions/72294279/how-to-connect-to-mysql-databas-using-github-actions | ||
"host": "127.0.0.1", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,14 +3,14 @@ | |
|
||
import json | ||
|
||
import pendulum | ||
import datetime | ||
from singer_sdk.testing.templates import TapTestTemplate | ||
|
||
from tap_mysql.tap import TapMySQL | ||
|
||
TABLE_NAME = "test_replication_key" | ||
SAMPLE_CONFIG = { | ||
"start_date": pendulum.datetime(2022, 11, 1).to_iso8601_string(), | ||
"start_date": datetime.datetime(2022, 11, 1).isoformat(), | ||
# Using 127.0.0.1 instead of localhost because of mysqlclient dialect. | ||
# See: https://stackoverflow.com/questions/72294279/how-to-connect-to-mysql-databas-using-github-actions | ||
"sqlalchemy_url": f"mysql+pymysql://root:[email protected]:3306/melty", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Tests selected columns only from stream.""" | ||
|
||
# flake8: noqa | ||
import json | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters