Merge pull request #2908 from HelioGuilherme66/split_long_cols #248
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: Sonar | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
- cleanup_code | |
jobs: | |
sonarcloud: | |
name: SonarCloud | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Update ubuntu | |
run: sudo apt update -y | |
- name: Install missing library | |
run: sudo apt-get install libnotify4 libsdl1.2debian libsdl2.2 -y | |
- name: Install xorg | |
run: sudo apt-get install -y xorg openbox | |
- name: Install Xvfb | |
run: sudo apt-get install xvfb -y | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install invoke and any other packages | |
run: pip install coverage invoke pytest | |
- name: Install wxPython | |
run: pip install https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-22.04/wxPython-4.2.1-cp310-cp310-linux_x86_64.whl | |
- name: Install RIDE dependencies | |
run: | | |
git submodule update --init --recursive | |
pip install -r requirements-dev.txt | |
- name: Run Xvfb | |
run: Xvfb :1 -noreset & | |
- name: Test Install RIDE | |
run: | | |
git submodule update --init --recursive | |
pip install . | |
- name: Run RIDE unit-tests | |
run: | | |
export DISPLAY=:1 | |
git submodule update --init --recursive | |
invoke test-ci | |
- name: Analyze with SonarCloud | |
uses: sonarsource/sonarcloud-github-action@master | |
with: | |
projectBaseDir: ${{ github.workspace }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
DISPLAY: :1 | |