From 9815454e283487f974a7831c5893cd8f5204e04b Mon Sep 17 00:00:00 2001 From: Prapti Sharma <praptisharma282003@gmail.com> Date: Fri, 31 May 2024 23:48:28 +0530 Subject: [PATCH] [fix] Workflow and test updated #274 Fixes #274 --- .github/workflows/ci.yml | 31 ++----------------------------- 1 file changed, 2 insertions(+), 29 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 01b3e8b1..07a3be73 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,23 +21,6 @@ jobs: image: redis ports: - 6379:6379 - influxdb1: - image: influxdb:1.8-alpine - ports: - - 8086:8086 - influxdb2: - image: influxdb:2.0-alpine - volumes: - - influxdb2-data:/var/lib/influxdb2 - ports: - - 8087:8086 - options: >- - --env DOCKER_INFLUXDB_INIT_MODE=setup - --env DOCKER_INFLUXDB_INIT_USERNAME=openwisp - --env DOCKER_INFLUXDB_INIT_PASSWORD=openwisp - --env DOCKER_INFLUXDB_INIT_ORG=openwisp - --env DOCKER_INFLUXDB_INIT_BUCKET=openwisp2 - --env DOCKER_INFLUXDB_INIT_RETENTION=1w strategy: fail-fast: false @@ -50,9 +33,6 @@ jobs: - django~=3.2.0 - django~=4.1.0 - django~=4.2.0 - influxdb-version: - - influxdb1 - - influxdb2 steps: - name: Install system packages @@ -84,8 +64,8 @@ jobs: - name: Install npm dependencies run: sudo npm install -g jshint stylelint - - name: Start InfluxDB ${{ matrix.influxdb-version }} container - run: docker-compose up -d ${{ matrix.influxdb-version }} + - name: Start InfluxDB container + run: docker-compose up -d influxdb - name: Install test dependencies run: | @@ -97,13 +77,6 @@ jobs: pip uninstall -y django pip install ${{ matrix.django-version }} - - name: Set InfluxDB environment variables for InfluxDB 2.x - if: matrix.influxdb-version == 'influxdb2' - run: | - export INFLUXDB_HOST=localhost - export INFLUXDB_PORT=8087 - export USE_INFLUXDB2=True - - name: QA checks run: | ./run-qa-checks