Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 3 additions & 49 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
matrix:
os: [ubuntu-latest]
python-version: ['3.12']
toxenv: [django42, django52, quality]
toxenv: [django52, quality]

steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
Expand All @@ -36,55 +36,9 @@ jobs:
run: tox

- name: Run Coverage
if: matrix.python-version == '3.12' && matrix.toxenv=='django42'
uses: codecov/codecov-action@75cd11691c0faa626561e295848008c8a7dddffe # v5.5.4
if: matrix.python-version == '3.12' && matrix.toxenv=='django52'
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
flags: unittests
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}


provider-verification:
name: Pact Provider Verification
runs-on: ubuntu-latest
needs: run_tests
continue-on-error: true # PACT_FLOW_ACCESS_TOKEN secret must be configured for this to pass

steps:
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1

- name: setup python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: 3.12

- name: Install pip
run: pip install -r requirements/pip.txt

- name: Install Dependencies
run: |
pip install "Django>=4.2,<5.0"
pip install -r requirements/ci.txt
pip install -r requirements/test.txt

- name: Verify Pacts
run: |
export PACT_BROKER_TOKEN=${{ secrets.PACT_FLOW_ACCESS_TOKEN }}
if [ -z "$PACT_BROKER_TOKEN" ]; then
echo "PACT_FLOW_ACCESS_TOKEN secret not configured, skipping Pact verification."
exit 0
fi
export IS_MERGED=${{ github.event.pull_request.merged }}
export PACT_BROKER_BASE_URL='https://edx.pactflow.io'
export PUBLISH_VERSION=`git rev-parse --short HEAD`
if [ $IS_MERGED == false ]
then
export PUBLISH_TAGS=$GITHUB_HEAD_REF
export GIT_ENV='development'
else
export PUBLISH_TAGS=${GITHUB_REF:11}
export GIT_ENV='production'
fi
export PUBLISH_VERIFICATION_RESULTS=true
pytest -s edxval/pacts/verify_pact.py --ds=edxval.settings.pact
42 changes: 0 additions & 42 deletions .github/workflows/verify_changed_contract.yml

This file was deleted.

2 changes: 1 addition & 1 deletion edxval/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
init
"""

__version__ = '4.0.1'
__version__ = '5.0.0'
13 changes: 0 additions & 13 deletions edxval/pacts/README.md

This file was deleted.

Empty file removed edxval/pacts/__init__.py
Empty file.
33 changes: 0 additions & 33 deletions edxval/pacts/middleware.py

This file was deleted.

65 changes: 0 additions & 65 deletions edxval/pacts/utils.py

This file was deleted.

74 changes: 0 additions & 74 deletions edxval/pacts/verify_pact.py

This file was deleted.

Loading
Loading