Skip to content

Commit b52bea1

Browse files
committed
chore: debug CI
1 parent c13ee49 commit b52bea1

File tree

2 files changed

+91
-90
lines changed

2 files changed

+91
-90
lines changed

.github/actions/coverage/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ runs:
3131
path: coverage
3232
- name: Combine reports
3333
shell: bash
34-
run: poetry --directory ./src/datasource_toolkit run find ../../coverage | xargs poetry --directory ./src/datasource_toolkit run coverage combine
34+
run: poetry --directory ./src/datasource_toolkit run find ../../coverage | grep \\.coverage | xargs poetry --directory ./src/datasource_toolkit run coverage combine
3535
- name: Send coverage
3636
uses: paambaati/[email protected]
3737
env:

.github/workflows/generic.yml

Lines changed: 90 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -24,100 +24,101 @@ on:
2424
SLACK_WEBHOOK:
2525
required: true
2626
jobs:
27-
changes:
28-
name: changes
29-
runs-on: ubuntu-latest
30-
outputs:
31-
packages: ${{ steps.changes.outputs.packages }}
32-
steps:
33-
- uses: actions/checkout@v4
34-
- id: changes
35-
uses: ./.github/actions/changes
36-
lint:
37-
name: Linting
38-
needs: [ changes ]
39-
runs-on: ubuntu-latest
40-
strategy:
41-
matrix:
42-
python-version: ['3.10']
43-
current_package: ${{ fromJson(inputs.packages) }}
44-
steps:
45-
- name: has change in sub package
46-
id: has_change
47-
run: |
48-
PACKAGE_NAME=$(echo $PACKAGE | cut -d'/' -f3)
49-
echo "has_change=$(echo $CHANGES | jq -r .$PACKAGE_NAME)" >> $GITHUB_OUTPUT
50-
shell: bash
51-
env:
52-
PACKAGE: ${{ matrix.current_package }}
53-
CHANGES: ${{ needs.changes.outputs.packages }}
54-
- uses: actions/checkout@v4
55-
if: ${{ steps.has_change.outputs.has_change != 'false' }}
56-
- id: lint
57-
if: ${{ steps.has_change.outputs.has_change != 'false' }}
58-
uses: ./.github/actions/linting
59-
with:
60-
python-version: ${{ matrix.python-version }}
61-
current_package: ${{ matrix.current_package }}
62-
isort:
63-
name: Isorting
64-
needs: [ changes ]
65-
runs-on: ubuntu-latest
66-
strategy:
67-
matrix:
68-
python-version: ['3.10']
69-
current_package: ${{ fromJson(inputs.packages) }}
70-
steps:
71-
- name: has change in sub package
72-
id: has_change
73-
run: |
74-
PACKAGE_NAME=$(echo $PACKAGE | cut -d'/' -f3)
75-
echo "has_change=$(echo $CHANGES | jq -r .$PACKAGE_NAME)" >> $GITHUB_OUTPUT
76-
shell: bash
77-
env:
78-
PACKAGE: ${{ matrix.current_package }}
79-
CHANGES: ${{ needs.changes.outputs.packages }}
80-
- uses: actions/checkout@v4
81-
if: ${{ steps.has_change.outputs.has_change != 'false' }}
82-
- id: isort
83-
if: ${{ steps.has_change.outputs.has_change != 'false' }}
84-
uses: ./.github/actions/isort
85-
with:
86-
python-version: ${{ matrix.python-version }}
87-
current_package: ${{ matrix.current_package }}
88-
black:
89-
name: Black
90-
needs: [ changes ]
91-
runs-on: ubuntu-latest
92-
strategy:
93-
matrix:
94-
python-version: ['3.10']
95-
current_package: ${{ fromJson(inputs.packages) }}
96-
steps:
97-
- name: has change in sub package
98-
id: has_change
99-
run: |
100-
PACKAGE_NAME=$(echo $PACKAGE | cut -d'/' -f3)
101-
echo "has_change=$(echo $CHANGES | jq -r .$PACKAGE_NAME)" >> $GITHUB_OUTPUT
102-
shell: bash
103-
env:
104-
PACKAGE: ${{ matrix.current_package }}
105-
CHANGES: ${{ needs.changes.outputs.packages }}
106-
- uses: actions/checkout@v4
107-
if: ${{ steps.has_change.outputs.has_change != 'false' }}
108-
- id: isort
109-
if: ${{ steps.has_change.outputs.has_change != 'false' }}
110-
uses: ./.github/actions/black
111-
with:
112-
python-version: ${{ matrix.python-version }}
113-
current_package: ${{ matrix.current_package }}
27+
# changes:
28+
# name: changes
29+
# runs-on: ubuntu-latest
30+
# outputs:
31+
# packages: ${{ steps.changes.outputs.packages }}
32+
# steps:
33+
# - uses: actions/checkout@v4
34+
# - id: changes
35+
# uses: ./.github/actions/changes
36+
# lint:
37+
# name: Linting
38+
# needs: [ changes ]
39+
# runs-on: ubuntu-latest
40+
# strategy:
41+
# matrix:
42+
# python-version: ['3.10']
43+
# current_package: ${{ fromJson(inputs.packages) }}
44+
# steps:
45+
# - name: has change in sub package
46+
# id: has_change
47+
# run: |
48+
# PACKAGE_NAME=$(echo $PACKAGE | cut -d'/' -f3)
49+
# echo "has_change=$(echo $CHANGES | jq -r .$PACKAGE_NAME)" >> $GITHUB_OUTPUT
50+
# shell: bash
51+
# env:
52+
# PACKAGE: ${{ matrix.current_package }}
53+
# CHANGES: ${{ needs.changes.outputs.packages }}
54+
# - uses: actions/checkout@v4
55+
# if: ${{ steps.has_change.outputs.has_change != 'false' }}
56+
# - id: lint
57+
# if: ${{ steps.has_change.outputs.has_change != 'false' }}
58+
# uses: ./.github/actions/linting
59+
# with:
60+
# python-version: ${{ matrix.python-version }}
61+
# current_package: ${{ matrix.current_package }}
62+
# isort:
63+
# name: Isorting
64+
# needs: [ changes ]
65+
# runs-on: ubuntu-latest
66+
# strategy:
67+
# matrix:
68+
# python-version: ['3.10']
69+
# current_package: ${{ fromJson(inputs.packages) }}
70+
# steps:
71+
# - name: has change in sub package
72+
# id: has_change
73+
# run: |
74+
# PACKAGE_NAME=$(echo $PACKAGE | cut -d'/' -f3)
75+
# echo "has_change=$(echo $CHANGES | jq -r .$PACKAGE_NAME)" >> $GITHUB_OUTPUT
76+
# shell: bash
77+
# env:
78+
# PACKAGE: ${{ matrix.current_package }}
79+
# CHANGES: ${{ needs.changes.outputs.packages }}
80+
# - uses: actions/checkout@v4
81+
# if: ${{ steps.has_change.outputs.has_change != 'false' }}
82+
# - id: isort
83+
# if: ${{ steps.has_change.outputs.has_change != 'false' }}
84+
# uses: ./.github/actions/isort
85+
# with:
86+
# python-version: ${{ matrix.python-version }}
87+
# current_package: ${{ matrix.current_package }}
88+
# black:
89+
# name: Black
90+
# needs: [ changes ]
91+
# runs-on: ubuntu-latest
92+
# strategy:
93+
# matrix:
94+
# python-version: ['3.10']
95+
# current_package: ${{ fromJson(inputs.packages) }}
96+
# steps:
97+
# - name: has change in sub package
98+
# id: has_change
99+
# run: |
100+
# PACKAGE_NAME=$(echo $PACKAGE | cut -d'/' -f3)
101+
# echo "has_change=$(echo $CHANGES | jq -r .$PACKAGE_NAME)" >> $GITHUB_OUTPUT
102+
# shell: bash
103+
# env:
104+
# PACKAGE: ${{ matrix.current_package }}
105+
# CHANGES: ${{ needs.changes.outputs.packages }}
106+
# - uses: actions/checkout@v4
107+
# if: ${{ steps.has_change.outputs.has_change != 'false' }}
108+
# - id: isort
109+
# if: ${{ steps.has_change.outputs.has_change != 'false' }}
110+
# uses: ./.github/actions/black
111+
# with:
112+
# python-version: ${{ matrix.python-version }}
113+
# current_package: ${{ matrix.current_package }}
114114
test:
115115
name: Test
116-
needs: [isort, lint, black]
116+
# needs: [isort, lint, black]
117117
runs-on: ubuntu-latest
118118
strategy:
119119
matrix:
120-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
120+
# python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
121+
python-version: ['3.10' ]
121122
current_package: ${{ fromJson(inputs.packages) }}
122123
steps:
123124
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)