Skip to content

Commit 34166c5

Browse files
committed
move from poetry to uv, fix test.yml workflow
1 parent bde1c0e commit 34166c5

File tree

5 files changed

+1228
-1648
lines changed

5 files changed

+1228
-1648
lines changed

.github/workflows/test.yml

Lines changed: 29 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,38 @@
33

44
name: Test tap-exact
55

6-
on: [push]
6+
on:
7+
pull_request:
8+
branches: [main]
9+
paths:
10+
- .github/workflows/test.yml
11+
- tap_exact/**
12+
- tests/**
13+
- pyproject.toml
14+
- uv.lock
15+
workflow_dispatch:
16+
17+
permissions:
18+
contents: read
19+
20+
env:
21+
FORCE_COLOR: 1
722

823
jobs:
9-
pytest:
24+
linting:
25+
name: Linting
1026
runs-on: ubuntu-latest
11-
env:
12-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
13-
strategy:
14-
matrix:
15-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
1627
steps:
17-
- uses: actions/checkout@v3
18-
- name: Set up Python ${{ matrix.python-version }}
19-
uses: actions/setup-python@v4
28+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
29+
- name: Set up Python
30+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
2031
with:
21-
python-version: ${{ matrix.python-version }}
22-
- name: Install Poetry
23-
run: |
24-
pip install poetry
25-
- name: Install dependencies
26-
run: |
27-
poetry install
28-
- name: Test with pytest
32+
python-version: "3.12"
33+
- name: Setup uv
34+
uses: astral-sh/setup-uv@b75a909f75acd358c2196fb9a5f1299a9a8868a4 # v6.7.0
35+
with:
36+
version: ">=0.7"
37+
- name: Run Linting
2938
run: |
30-
poetry run pytest
39+
uvx ruff check tap_exact
40+
uvx ruff format --check tap_exact

meltano.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ plugins:
2121
client_secret: $TAP_EXACT_CLIENT_SECRET
2222
tokens_s3_bucket: $TAP_EXACT_TOKENS_S3_BUCKET
2323
tokens_s3_key: $TAP_EXACT_TOKENS_S3_KEY
24-
divisions: ["3490573", "2542158", "2119843", "2140191", "2140277", "2603668"]
25-
select:
26-
- *.*
24+
divisions: ["3490573"]
2725

2826
loaders:
2927
- name: target-jsonl

0 commit comments

Comments
 (0)