Skip to content

Change upstream_repo variable to actual value #2268

Change upstream_repo variable to actual value

Change upstream_repo variable to actual value #2268

Workflow file for this run

name: edx-platform tests
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-20.04
services:
mongodb:
image: mongo
ports:
- 27017:27017
strategy:
matrix:
python-version: [3.5]
tox-env:
- pep8
- common
- lms-1
- lms-2
- mte
- legacy-amc-tests
- db-migrations
- studio
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }} ${{ matrix.tox-env }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
# TODO: Remove tox-pip-version once we upgrade to Koa+, or whenever we have addressed pip 20.3 strict issues.
run: |
sudo apt-get update -y
sudo apt-get install -y python-dev libxml2-dev libxmlsec1-dev
pip install tox tox-pip-version
- name: Run tox
run: |
PYTEST_ARGS='--cov=.' tox -e ${{ matrix.tox-env }}
- name: Coveralls
uses: AndreMiras/coveralls-python-action@v20201129
if: ${{ matrix.tox-env != 'pep8' }}
with:
parallel: true
flag-name: Unit Test
coveralls_finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: AndreMiras/coveralls-python-action@v20201129
with:
flag-name: Unit Tests
parallel-finished: true