Skip to content

Commit

Permalink
build: update ci.ymld
Browse files Browse the repository at this point in the history
rempved and added jobs to improve workflow due to failure
  • Loading branch information
Talha-Rizwan committed Nov 23, 2023
1 parent 4230273 commit 4a9b0d4
Showing 1 changed file with 18 additions and 34 deletions.
52 changes: 18 additions & 34 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,39 +16,23 @@ jobs:
matrix:
os: [ubuntu-20.04]
python-version: ['3.8']
toxenv: [quality, docs, pii_check, django32, django40]
toxenv: [django32, django42, quality]

steps:
- uses: actions/checkout@v3
- name: setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install pip
run: pip install -r requirements/pip.txt

- name: Install Dependencies
run: pip install -r requirements/ci.txt

- name: Install Cookiecutter
run: pip install -r requirements/ci.txt

- name: Create Build
run: |
rm -rf /tmp/myxblock-xblock
XBLOCK=$(pwd) && cd /tmp/ && echo -e '\n\n\n\n\n' | cookiecutter $XBLOCK
cd /tmp/myxblock-xblock && make help && pip install -e .
cd /tmp/myxblock-xblock && make dev.build
- name: Run Tests
env:
TOXENV: ${{ matrix.toxenv }}
run: tox

- name: Run coverage
if: matrix.python-version == '3.8' && matrix.toxenv == 'django32'
uses: codecov/codecov-action@v3
with:
flags: unittests
fail_ci_if_error: true
- name: Install system requirements
run: sudo apt-get install -y gettext
- uses: actions/checkout@v2
continue-on-error: true
- name: Python setup
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install Requirements
run: |
pip install -r requirements/ci.txt
- name: Run Tests
env:
TOXENV: ${{ matrix.toxenv }}
run: tox

0 comments on commit 4a9b0d4

Please sign in to comment.