mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix tranlation pipeline (#6559)
* use default setup action * small change to trigger CI * use enviroment step * define python version * us uv a bit more * clean diff * globally define python version
This commit is contained in:
parent
6f0b2b31a8
commit
1fa64dd8cc
4
.github/actions/setup/action.yaml
vendored
4
.github/actions/setup/action.yaml
vendored
@ -56,7 +56,7 @@ runs:
|
|||||||
- name: Install Specific Python Dependencies
|
- name: Install Specific Python Dependencies
|
||||||
if: ${{ inputs.pip-dependency }}
|
if: ${{ inputs.pip-dependency }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: pip3 install ${{ inputs.pip-dependency }}
|
run: uv pip install ${{ inputs.pip-dependency }}
|
||||||
|
|
||||||
# NPM installs
|
# NPM installs
|
||||||
- name: Install node.js ${{ env.node_version }}
|
- name: Install node.js ${{ env.node_version }}
|
||||||
@ -82,7 +82,7 @@ runs:
|
|||||||
- name: Install dev requirements
|
- name: Install dev requirements
|
||||||
if: ${{ inputs.dev-install == 'true' ||inputs.install == 'true' }}
|
if: ${{ inputs.dev-install == 'true' ||inputs.install == 'true' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: pip install -r requirements-dev.txt
|
run: uv pip install -r requirements-dev.txt
|
||||||
- name: Run invoke install
|
- name: Run invoke install
|
||||||
if: ${{ inputs.install == 'true' }}
|
if: ${{ inputs.install == 'true' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
18
.github/workflows/check_translations.yaml
vendored
18
.github/workflows/check_translations.yaml
vendored
@ -8,6 +8,9 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- l10
|
- l10
|
||||||
|
|
||||||
|
env:
|
||||||
|
python_version: 3.9
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
check:
|
check:
|
||||||
@ -21,22 +24,15 @@ jobs:
|
|||||||
INVENTREE_MEDIA_ROOT: ./media
|
INVENTREE_MEDIA_ROOT: ./media
|
||||||
INVENTREE_STATIC_ROOT: ./static
|
INVENTREE_STATIC_ROOT: ./static
|
||||||
INVENTREE_BACKUP_DIR: ./backup
|
INVENTREE_BACKUP_DIR: ./backup
|
||||||
python_version: 3.9
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # pin@v4.1.1
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # pin@v4.1.1
|
||||||
- name: Set Up Python ${{ env.python_version }}
|
- name: Environment Setup
|
||||||
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # pin@v4.7.1
|
uses: ./.github/actions/setup
|
||||||
with:
|
with:
|
||||||
python-version: ${{ env.python_version }}
|
install: true
|
||||||
cache: 'pip'
|
apt-dependency: gettext
|
||||||
- name: Install Dependencies
|
|
||||||
run: |
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install gettext
|
|
||||||
pip3 install invoke
|
|
||||||
invoke install
|
|
||||||
- name: Test Translations
|
- name: Test Translations
|
||||||
run: invoke translate
|
run: invoke translate
|
||||||
- name: Check Migration Files
|
- name: Check Migration Files
|
||||||
|
22
.github/workflows/translations.yml
vendored
22
.github/workflows/translations.yml
vendored
@ -5,6 +5,10 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
env:
|
||||||
|
python_version: 3.9
|
||||||
|
node_version: 16
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
@ -22,20 +26,12 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # pin@v4.1.1
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # pin@v4.1.1
|
||||||
- name: Set up Python 3.9
|
- name: Environment Setup
|
||||||
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # pin@v4.7.1
|
uses: ./.github/actions/setup
|
||||||
with:
|
with:
|
||||||
python-version: 3.9
|
install: true
|
||||||
- name: Set up Node 16
|
npm: true
|
||||||
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # pin to v3.8.2
|
apt-dependency: gettext
|
||||||
with:
|
|
||||||
node-version: 16
|
|
||||||
- name: Install Dependencies
|
|
||||||
run: |
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y gettext
|
|
||||||
pip3 install invoke
|
|
||||||
invoke install
|
|
||||||
- name: Make Translations
|
- name: Make Translations
|
||||||
run: invoke translate
|
run: invoke translate
|
||||||
- name: Commit files
|
- name: Commit files
|
||||||
|
Loading…
Reference in New Issue
Block a user