fix: requirements.txt to reduce vulnerabilities #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Main workflow | |
on: push | |
jobs: | |
build: | |
name: Python action | |
env: | |
PACT_BROKER_URL: ${{ secrets.PACT_BROKER_URL }} | |
PACT_BROKER_TOKEN: ${{ secrets.PACT_BROKER_TOKEN }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- run: docker-compose up -d | |
- run: docker-compose exec -T product_api pip install -r requirements.txt | |
- run: docker-compose exec -d -T product_api bash -c "python product_api.py" | |
- run: docker-compose exec -T product_api bash -c "pact-verifier --provider-base-url http://localhost:8082 --pact-url $PACT_BROKER_URL/pacts/provider/Product/consumer/Checkout/latest --pact-broker-token $PACT_BROKER_TOKEN --provider-app-version 1.0.0 --publish-verification-results" | |