Skip to content

Commit ec8077f

Browse files
committed
Build black, isort extensions and format preset in ci/cd
1 parent ee6feaa commit ec8077f

File tree

1 file changed

+35
-3
lines changed

1 file changed

+35
-3
lines changed

.github/workflows/ci-cd.yml

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,21 +87,53 @@ jobs:
8787
poetry build
8888
popd
8989
shell: bash
90+
91+
- name: Build fine_python_black
92+
if: runner.os == 'Linux'
93+
run: |
94+
pushd extensions/fine_python_black
95+
poetry build
96+
popd
97+
shell: bash
98+
99+
- name: Build fine_python_isort
100+
if: runner.os == 'Linux'
101+
run: |
102+
pushd extensions/fine_python_isort
103+
poetry build
104+
popd
105+
shell: bash
106+
107+
- name: Build fine_python_format
108+
if: runner.os == 'Linux'
109+
run: |
110+
pushd presets/fine_python_format
111+
poetry build
112+
popd
113+
shell: bash
90114

91115
# - name: Build finecode
92116
# if: runner.os == 'Linux'
93117
# run: |
94118
# poetry build
95119
# shell: bash
96120

121+
- name: Collect all distribution packages
122+
run: |
123+
mkdir -p dist
124+
cp finecode_extension_api/dist/* dist/
125+
cp extensions/fine_python_black/dist/* dist/
126+
cp extensions/fine_python_isort/dist/* dist/
127+
cp presets/fine_python_format/dist/* dist/
128+
shell: bash
129+
130+
97131
- name: Store the distribution packages
98132
uses: actions/upload-artifact@v4
99133
if: runner.os == 'Linux'
100134
with:
101135
name: python-package-distributions
102-
path: |
103-
dist/
104-
finecode_extension_api/dist/
136+
path: dist/
105137

106138
# - name: Run unit tests
107139
# if: ${{ !cancelled() }}

0 commit comments

Comments
 (0)