From 3a3acec65aa668f2b90639853b90953fbf16c420 Mon Sep 17 00:00:00 2001 From: Rebecca Breu Date: Tue, 6 Jul 2021 21:02:17 +0200 Subject: [PATCH] Lint yaml files --- .github/workflows/build.yml | 42 ++++++++++++++++++------------------ .github/workflows/flake8.yml | 24 ++++++++++----------- .github/workflows/pytest.yml | 36 +++++++++++++++---------------- requirements/dev.txt | 1 + 4 files changed, 52 insertions(+), 51 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 451caa3..3cb3186 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,26 +9,26 @@ jobs: runs-on: ${{ matrix.os }} strategy: - matrix: - os: ['ubuntu-20.04', 'macos-10.15', 'windows-latest'] + matrix: + os: ['ubuntu-20.04', 'macos-10.15', 'windows-latest'] steps: - - uses: actions/checkout@v2 - - name: Set up Python 3.8 - uses: actions/setup-python@v1 - with: - python-version: 3.8 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install pyinstaller - pip install -e . - - name: Run build.py - run: | - python build.py - - name: Upload artifact - uses: actions/upload-artifact@v2 - with: - name: build - path: dist/*.zip - retention-days: 5 \ No newline at end of file + - uses: actions/checkout@v2 + - name: Set up Python 3.8 + uses: actions/setup-python@v1 + with: + python-version: 3.8 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pyinstaller + pip install -e . + - name: Run build.py + run: | + python build.py + - name: Upload artifact + uses: actions/upload-artifact@v2 + with: + name: build + path: dist/*.zip + retention-days: 5 diff --git a/.github/workflows/flake8.yml b/.github/workflows/flake8.yml index 05ee219..c62402c 100644 --- a/.github/workflows/flake8.yml +++ b/.github/workflows/flake8.yml @@ -8,15 +8,15 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Set up Python 3.8 - uses: actions/setup-python@v1 - with: - python-version: 3.8 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install flake8 - - name: Analysing the code with flake8 - run: | - flake8 . + - uses: actions/checkout@v2 + - name: Set up Python 3.8 + uses: actions/setup-python@v1 + with: + python-version: 3.8 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 + - name: Analysing the code with flake8 + run: | + flake8 . diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 583bdc5..b27883a 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -10,21 +10,21 @@ jobs: matrix: python-version: ['3.6', '3.7', '3.8', '3.9'] steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v1 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - sudo apt-get update - sudo apt install libgl1-mesa-glx libegl1 libglib2.0-0 libxcb-image0 libxkbcommon-x11-0 libxcb-icccm4 libxcb-keysyms1 xserver-xephyr libfontconfig1 libxkbcommon-dev libdbus-1-3 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 - sudo apt install xvfb - python -m pip install --upgrade pip - pip install . - pip install -r requirements/test.txt - - name: Run Unittests with pytest - run: | - xvfb-run --auto-servernum --server-num=1 --server-args="-screen 1 1920x1200x24 -ac +extension GLX" coverage run --source=beeref -m pytest -v -s - - name: Upload Coverage report to Codecov - uses: codecov/codecov-action@v1 + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + sudo apt-get update + sudo apt install libgl1-mesa-glx libegl1 libglib2.0-0 libxcb-image0 libxkbcommon-x11-0 libxcb-icccm4 libxcb-keysyms1 xserver-xephyr libfontconfig1 libxkbcommon-dev libdbus-1-3 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 + sudo apt install xvfb + python -m pip install --upgrade pip + pip install . + pip install -r requirements/test.txt + - name: Run Unittests with pytest + run: | + xvfb-run --auto-servernum --server-num=1 --server-args="-screen 1 1920x1200x24 -ac +extension GLX" coverage run --source=beeref -m pytest -v -s + - name: Upload Coverage report to Codecov + uses: codecov/codecov-action@v1 diff --git a/requirements/dev.txt b/requirements/dev.txt index 29da335..b2af2bc 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -3,3 +3,4 @@ flake8 pybadges pyinstaller +yamllint