Skip to content

Commit

Permalink
Reduce pytest time (#511)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwin1111 authored Oct 23, 2023
1 parent ffba2a3 commit 437d86c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
17 changes: 1 addition & 16 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ jobs:
environment: CI Environment
steps:
- uses: actions/checkout@v2
- uses: satackey/[email protected]
continue-on-error: true
- name: Bring up Services and test for token health
run: |
docker-compose -f docker-compose-pipeline.yml build
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 437d86c

Please sign in to comment.