mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fixes for broken CI builds (#3276)
* Install dev requirements when running unit tests * Disable mysql and postgresql checks for pull requests * Install required dev packages when running tests on docker build
This commit is contained in:
parent
31e49c23bd
commit
4403c9cfe4
1
.github/workflows/docker.yaml
vendored
1
.github/workflows/docker.yaml
vendored
@ -45,6 +45,7 @@ jobs:
|
|||||||
- name: Run Unit Tests
|
- name: Run Unit Tests
|
||||||
run: |
|
run: |
|
||||||
docker-compose run inventree-dev-server invoke update
|
docker-compose run inventree-dev-server invoke update
|
||||||
|
docker-compose run inventree-dev-server invoke pip3 install -U -r requirements-dev.txt
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
docker-compose run inventree-dev-server invoke wait
|
docker-compose run inventree-dev-server invoke wait
|
||||||
docker-compose run inventree-dev-server invoke test
|
docker-compose run inventree-dev-server invoke test
|
||||||
|
2
.github/workflows/qc_checks.yaml
vendored
2
.github/workflows/qc_checks.yaml
vendored
@ -220,6 +220,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
apt-dependency: gettext poppler-utils libpq-dev
|
apt-dependency: gettext poppler-utils libpq-dev
|
||||||
pip-dependency: psycopg2 django-redis>=5.0.0
|
pip-dependency: psycopg2 django-redis>=5.0.0
|
||||||
|
dev-install: true
|
||||||
update: true
|
update: true
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: invoke test
|
run: invoke test
|
||||||
@ -263,6 +264,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
apt-dependency: gettext poppler-utils libmysqlclient-dev
|
apt-dependency: gettext poppler-utils libmysqlclient-dev
|
||||||
pip-dependency: mysqlclient
|
pip-dependency: mysqlclient
|
||||||
|
dev-install: true
|
||||||
update: true
|
update: true
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: invoke test
|
run: invoke test
|
||||||
|
Loading…
Reference in New Issue
Block a user