From 4403c9cfe4c294829b362091d78d1bf55f6dd9fc Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 1 Jul 2022 12:36:20 +1000 Subject: [PATCH] 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 --- .github/workflows/docker.yaml | 1 + .github/workflows/qc_checks.yaml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 3b5edbb074..bb035a6a84 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -45,6 +45,7 @@ jobs: - name: Run Unit Tests run: | 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 run inventree-dev-server invoke wait docker-compose run inventree-dev-server invoke test diff --git a/.github/workflows/qc_checks.yaml b/.github/workflows/qc_checks.yaml index 860bb8f7b6..64261f5b6a 100644 --- a/.github/workflows/qc_checks.yaml +++ b/.github/workflows/qc_checks.yaml @@ -220,6 +220,7 @@ jobs: with: apt-dependency: gettext poppler-utils libpq-dev pip-dependency: psycopg2 django-redis>=5.0.0 + dev-install: true update: true - name: Run Tests run: invoke test @@ -263,6 +264,7 @@ jobs: with: apt-dependency: gettext poppler-utils libmysqlclient-dev pip-dependency: mysqlclient + dev-install: true update: true - name: Run Tests run: invoke test