Skip to content

Commit d74cd6b

Browse files
authored
chore: Optimize test build (#158)
1 parent 7b7fbe9 commit d74cd6b

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed

.github/workflows/publish-to-live-pypi.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@ jobs:
2929
pip install
3030
build django
3131
--user
32-
- name: Compile messages
33-
run: django-admin compilemessages
34-
working-directory: djangocms_text
3532
- uses: actions/setup-node@v6
3633
with:
3734
node-version-file: '.nvmrc'
3835
- name: Install dependencies
3936
run: npm install
4037
- name: Build client
4138
run: webpack --mode production
39+
- name: Compile messages
40+
run: django-admin compilemessages
41+
working-directory: djangocms_text
4242
- name: Build a binary wheel and a source tarball
4343
run: >-
4444
python -m

.github/workflows/publish-to-test-pypi.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@ jobs:
2929
pip install
3030
build django
3131
--user
32-
- name: Compile messages
33-
run: django-admin compilemessages
34-
working-directory: djangocms_text
3532
- uses: actions/setup-node@v6
3633
with:
3734
node-version-file: '.nvmrc'
3835
- name: Install dependencies
3936
run: npm install
4037
- name: Build client
4138
run: webpack --mode production
39+
- name: Compile messages
40+
run: django-admin compilemessages
41+
working-directory: djangocms_text
4242

4343
- name: Build a binary wheel and a source tarball
4444
run: >-
@@ -49,6 +49,9 @@ jobs:
4949
--outdir dist/
5050
.
5151
52+
- name: Show source dist content
53+
run: >-
54+
tar tzf dist/*.tar.gz
5255
- name: Publish distribution 📦 to Test PyPI
5356
uses: pypa/gh-action-pypi-publish@release/v1
5457
with:

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
recursive-include djangocms_text *.html *.txt *.mo *.js *.css *.svg *.png *.gif *.jpg *.woff *.woff2 *.ttf *.eot
22
recursive-include djangocms_text_ckeditor *.html *.txt *.js *.css *.svg *.png *.gif *.jpg *.woff *.woff2 *.ttf *.eot
3+
include THIRD_PARTY_LICENSES.txt

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ package-data."djangocms_text" = [
6262
"static/**",
6363
"contrib/**/static/**",
6464
"templates/**",
65-
"THIRD_PARTY_LICENSES.txt",
6665
]
6766
package-data."djangocms_text_ckeditor" = [
6867
"static/**",

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module.exports = {
2727
},
2828
}),
2929
new LicenseWebpackPlugin({
30-
outputFilename: 'THIRD_PARTY_LICENSES.txt',
30+
outputFilename: '../THIRD_PARTY_LICENSES.txt',
3131
perChunkOutput: false,
3232
licenseTemplateDir: path.resolve(__dirname, 'private/license-templates'),
3333
renderLicenses: (modules) => {

0 commit comments

Comments
 (0)