Issue #45 docker #57
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: Run tests | |
on: | |
push: | |
branches: [master, develop] | |
pull_request: | |
branches: [master, develop] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.8, 3.9] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install XML dependencies | |
run: sudo apt-get install libxml2-dev libxmlsec1-dev | |
- name: Install required packages | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r test_requirements.txt | |
pip list | |
- name: Create env file | |
run: | | |
cp .env.template .env | |
- name: Lint with flake8 | |
run: flake8 | |
- name: Check formatting | |
uses: psf/black@stable | |
- name: Check import sorting | |
uses: jamescurtin/isort-action@master | |
- name: Lint markdown files | |
uses: bewuethr/mdl-action@v1 | |
- name: Run tests | |
run: | | |
docker compose run lti coverage run -m unittest discover | |
docker compose run lti coverage xml | |
- name: list files | |
run: | | |
ls -lah | |
# - name: Upload coverage to Codecov | |
# uses: codecov/codecov-action@v2 | |
# with: | |
# fail_ci_if_error: true |