Skip to content

[frontend/test] Fix SkipTest import due to bump to nose2 #827

[frontend/test] Fix SkipTest import due to bump to nose2

[frontend/test] Fix SkipTest import due to bump to nose2 #827

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master, inginious-0.8 ]
pull_request:
branches: [ master, inginious-0.8 ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
tests:
strategy:
# Ensure that each python version will be tested even if one of them fails.
fail-fast: false
matrix:
python_version: ["3.10", "3.11", "3.12", "3.13"]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python_version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python_version }}
- name: Install dependencies
run: |
sudo apt-get install -y libtidy5deb1 libzmq3-dev
pip install setuptools==69.1.0 setuptools-scm==8.0.4
# pip3 install nose==1.3.7 selenium==3.141.0 coverage pyvirtualdisplay pytest
# pip3 install coverage==7.6.9 pytest==8.0.0 virtualenv==20.25.0 setuptools==69.1.0\
# setuptools-scm==8.0.4
- name: Start services
run: |
sudo systemctl start mongod
sudo systemctl start docker
- name: Install INGInious
run: |
pip3 install .
pip3 install .[test]
- name: Launch nose tests
run: nose2
- name: Launch pytest tests
if: always()
run: coverage run -a --branch -m pytest -v
- name: Generate coverage report
# Launch even if one of the two test jobs fails
if: always()
run: |
coverage report --include="inginious/*"
coverage xml --include="inginious/*"
- name: Save coverage output
uses: codacy/codacy-coverage-reporter-action@v1
if: ${{ github.event_name == 'push' }}
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage.xml