Skip to content

Commit 36665db

Browse files
committed
feat: adapt GH workflow in CICD
1 parent d417934 commit 36665db

File tree

4 files changed

+11
-23
lines changed

4 files changed

+11
-23
lines changed

.github/workflows/rw-collect-changes.yaml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,11 @@ jobs:
3434
base: ${{ inputs.commit-branch }}
3535
filters: |
3636
docs:
37-
- 'gooddata-pandas/**'
38-
- 'gooddata-sdk/**'
37+
- 'packages/gooddata-pandas/**'
38+
- 'packages/gooddata-sdk/**'
3939
- 'docs/**'
4040
python-modules:
4141
- '.docker/**'
42-
- 'gooddata-fdw/**'
43-
- 'gooddata-pandas/**'
44-
- 'gooddata-sdk/**'
42+
- 'packages/**'
4543
- '*.mk'
4644
- 'Makefile'
47-
- 'gooddata-api-client/**'
48-
- 'gooddata-dbt/**'
49-
- 'gooddata-flight-server/**'
50-
- 'gooddata-flexconnect/**'

.github/workflows/rw-python-tests.yaml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,21 @@ jobs:
2424
if: ${{ matrix.python_version == 'py313' }}
2525
uses: codecov/codecov-action@v3
2626
with:
27-
files: ./gooddata-sdk/coverage.xml,./gooddata-pandas/coverage.xml,./gooddata-fdw/coverage.xml,./gooddata-flight-server/coverage.xml,./gooddata-flexconnect/coverage.xml
27+
files: ./packages/gooddata-sdk/coverage.xml,./packages/gooddata-pandas/coverage.xml,./packages/gooddata-fdw/coverage.xml,./packages/gooddata-flight-server/coverage.xml,./packages/gooddata-flexconnect/coverage.xml
2828
lint-and-format-check:
2929
runs-on: ubuntu-latest
3030
if: ${{inputs.changed-python-modules == 'true'}}
3131
steps:
3232
- name: Checkout
3333
uses: actions/checkout@v4
3434
- name: Set up python 3.13
35-
uses: actions/setup-python@v5
35+
uses: astral-sh/setup-uv@v6
3636
with:
37-
python-version-file: '.python-version'
38-
cache: 'pip'
39-
cache-dependency-path: |
40-
fmt-requirements.txt
37+
python-version: 3.13
4138
- name: Install dependencies
4239
run: |
43-
make dev
40+
uv venv
41+
uv pip install --group lint
4442
- name: pep8 and formatting check
4543
run: |
4644
make format
@@ -54,13 +52,10 @@ jobs:
5452
uses: actions/setup-python@v5
5553
with:
5654
python-version-file: '.python-version'
57-
cache: 'pip'
58-
cache-dependency-path: |
59-
tox-requirements.txt
6055
- name: Install dependencies
6156
run: |
62-
python -m pip install --upgrade pip
63-
pip install -r tox-requirements.txt
57+
python -m pip install uv
58+
uv pip install --group tox --group type --system
6459
- name: mypy check
6560
run: |
6661
make mypy

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ RUN set -x \
3030
ENV PYTHON_TOX_VERSION=4.14.1
3131
ENV PYTHON_TOX_UV_VERSION=1.7.0
3232
RUN set -x \
33-
&& pip3 install tox==${PYTHON_TOX_VERSION} tox-uv==${PYTHON_TOX_UV_VERSION}\
33+
&& pip3 install uv tox==${PYTHON_TOX_VERSION} tox-uv==${PYTHON_TOX_UV_VERSION}\
3434
&& true
3535

3636
COPY .docker/entrypoint.sh /entrypoint.sh

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ all:
2020
dev:
2121
uv sync --all-groups
2222
.venv/bin/pre-commit install
23-
source .venv/bin/activate
2423

2524
.PHONY: lint
2625
lint:

0 commit comments

Comments
 (0)