1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-12-25 17:54:43 +03:00

ci: make use of Pipenv 2022.7.24 and skip lock on Windows

This commit is contained in:
louistiti 2022-10-13 00:53:58 +08:00
parent 42a3130394
commit 08d7fdf0dd
No known key found for this signature in database
GPG Key ID: 7ECA3DD523793FE6
2 changed files with 11 additions and 2 deletions

View File

@ -30,7 +30,7 @@ jobs:
# cache: pipenv # cache: pipenv
- name: Install Pipenv - name: Install Pipenv
run: pip install --upgrade pip && pip install pipenv run: pip install --upgrade pip && pip install pipenv==2022.7.24
- name: Install Node.js - name: Install Node.js
uses: actions/setup-node@v3 uses: actions/setup-node@v3

View File

@ -140,7 +140,13 @@ SPACY_MODELS.set('fr', {
} }
try { try {
await command(`pipenv install --deploy`, { let pipenvInstallCommand = `pipenv install --site-packages`
if (osType === OSTypes.Windows) {
pipenvInstallCommand = `${pipenvInstallCommand} --skip-lock`
}
await command(pipenvInstallCommand, {
shell: true, shell: true,
stdio: 'inherit' stdio: 'inherit'
}) })
@ -153,6 +159,9 @@ SPACY_MODELS.set('fr', {
LogHelper.error( LogHelper.error(
'Please check the error above. It might be related to Microsoft C++ Build Tools. If it is, you can check here: "https://stackoverflow.com/a/64262038/1768162" then restart your machine and retry' 'Please check the error above. It might be related to Microsoft C++ Build Tools. If it is, you can check here: "https://stackoverflow.com/a/64262038/1768162" then restart your machine and retry'
) )
LogHelper.error(
'If it is related to some hash mismatch, you can try by installing Pipenv 2022.7.24: pip install pipenv==2022.7.24'
)
} }
process.exit(1) process.exit(1)