Remove CSRF_TRUSTED_ORIGINS_WITH_SCHEMES variable #65
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: Default CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
python-version: ["3.8"] | |
os: [ubuntu-20.04] | |
toxenv: [django42] | |
node: [16] | |
env: | |
DATA_API_VERSION: "latest" | |
steps: | |
- name: setup python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: start container | |
run: docker compose -f .github/docker-compose-github.yml up -d | |
- name: setup analytics-api | |
run: | | |
docker exec analytics_api bash -c " | |
source /edx/app/analytics_api/venvs/analytics_api/bin/activate && | |
pip install setuptools==68.2.2 && | |
make -C /edx/app/analytics_api/analytics_api github_ci" | |
- name: install dependencies | |
run: pip install -r requirements/github.txt | |
- name: test quality | |
run: ./.github/scripts/testing.sh | |
shell: bash | |
env: | |
TESTNAME: quality | |
TARGETS: "quality" | |
TOXENV: ${{ matrix.toxenv }} | |
- name: test js | |
run: ./.github/scripts/testing-js.sh | |
shell: bash | |
env: | |
TESTNAME: js | |
NODE: ${{ matrix.node }} | |
TOXENV: ${{ matrix.toxenv }} | |
TARGETS: "requirements.js validate_js" | |
- name: test i18n | |
run: ./.github/scripts/testing.sh | |
shell: bash | |
env: | |
TESTNAME: test-i18n | |
TOXENV: ${{ matrix.toxenv }} | |
TARGETS: "generate_fake_translations" | |
- name: test acceptance | |
run: ./.github/scripts/testing-js.sh | |
shell: bash | |
env: | |
TESTNAME: acceptance | |
NODE: ${{ matrix.node }} | |
TOXENV: ${{ matrix.toxenv }} | |
TARGETS: "requirements.a11y migrate requirements.js static accept" | |
- name: test python | |
run: ./.github/scripts/testing-js.sh | |
shell: bash | |
env: | |
TESTNAME: test-python | |
NODE: ${{ matrix.node }} | |
TOXENV: ${{ matrix.toxenv }} | |
TARGETS: "requirements.js static test_python" | |
- name: Run coverage | |
if: matrix.python-version == '3.8' && matrix.toxenv == 'django42' | |
uses: py-cov-action/python-coverage-comment-action@v3 | |
with: | |
GITHUB_TOKEN: ${{ github.token }} | |
MINIMUM_GREEN: 95 | |
MINIMUM_ORANGE: 84 | |
ANNOTATE_MISSING_LINES: true | |
ANNOTATION_TYPE: error |