From 437d86cd2ae042c336e98cce683780379af58f6a Mon Sep 17 00:00:00 2001 From: Ashwin Thanaraj <37061471+ashwin1111@users.noreply.github.com> Date: Mon, 23 Oct 2023 14:22:27 +0530 Subject: [PATCH] Reduce pytest time (#511) --- .github/workflows/pytest.yml | 17 +---------------- Dockerfile | 2 +- requirements.txt | 1 + 3 files changed, 3 insertions(+), 17 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index b3eb8d39..ffa333da 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -10,8 +10,6 @@ jobs: environment: CI Environment steps: - uses: actions/checkout@v2 - - uses: satackey/action-docker-layer-caching@v0.0.11 - continue-on-error: true - name: Bring up Services and test for token health run: | docker-compose -f docker-compose-pipeline.yml build @@ -41,19 +39,6 @@ jobs: with: create-new-comment: true junitxml-path: ./test-reports/report.xml - - name: Stop Services - run: docker compose -f docker-compose-pipeline.yml down - name: Evaluate Coverage if: ${{ (env.STATUS == 'FAIL') || (env.FAILED > 0) }} - run: exit 1 - - name: Slack Notification - uses: rtCamp/action-slack-notify@v2 - if: ${{ always() && github.ref != 'refs/heads/master' }} - env: - SLACK_COLOR: ${{ job.status }} - SLACK_MESSAGE: pytest job status - ${{ job.status }} - SLACK_TITLE: Pytest Run Stats - SLACK_ICON_EMOJI: ":terminator:" - SLACK_USERNAME: Gandalf - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} - SLACK_FOOTER: '' + run: exit 1 \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index cb365490..521b124e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,7 @@ RUN if [ "$CI" = "ENABLED" ]; then \ # Installing requirements COPY requirements.txt /tmp/requirements.txt -RUN pip install --upgrade pip && pip install -r /tmp/requirements.txt && pip install flake8 +RUN pip install --upgrade pip && pip install -r /tmp/requirements.txt # Copy Project to the container diff --git a/requirements.txt b/requirements.txt index 8e858479..39e1de61 100644 --- a/requirements.txt +++ b/requirements.txt @@ -24,6 +24,7 @@ fyle==0.33.1 fyle-accounting-mappings==1.26.1 fyle-integrations-platform-connector==1.34.0 fyle-rest-auth==1.5.0 +flake8==4.0.1 gevent==23.9.1 gunicorn==20.1.0 idna==2.8