Skip to content

Commit

Permalink
chore: test
Browse files Browse the repository at this point in the history
  • Loading branch information
farhan committed Sep 14, 2023
1 parent 4c47904 commit 279f341
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:
strategy:
matrix:
python-version: ['3.8']
toxenv: [quality, django32, django42]
# toxenv: [quality, django32, django42]
toxenv: [django42]

steps:
- uses: actions/checkout@v2
Expand All @@ -24,14 +25,16 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install Dependencies
run: pip install -r requirements/ci.txt
run: |
python -m pip install --upgrade pip
pip install -r requirements/ci.txt
- name: Run Tests
run: tox -e ${{ matrix.toxenv }}

- name: Run Coverage
if: matrix.python-version == '3.8' && matrix.toxenv == 'django42'
uses: codecov/codecov-action@v3
with:
flags: unittests
fail_ci_if_error: true
# - name: Run Coverage
# if: matrix.python-version == '3.8' && matrix.toxenv == 'django42'
# uses: codecov/codecov-action@v3
# with:
# flags: unittests
# fail_ci_if_error: true
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[tox]
envlist = py38-django{32,42}, quality, docs
;envlist = py38-django{32,42}, quality, docs
envlist = py38-django{32}

[pytest]
DJANGO_SETTINGS_MODULE = xblock.test.settings
Expand Down

0 comments on commit 279f341

Please sign in to comment.