Merge pull request #1363 from appsembler/feat/tahoe-idp-2.6.0 #2203
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: 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 |