Lint yaml files

This commit is contained in:
Rebecca Breu 2021-07-06 21:02:17 +02:00
parent 0ab9b365cf
commit 3a3acec65a
4 changed files with 52 additions and 51 deletions

View file

@ -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
- 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

View file

@ -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 .

View file

@ -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

View file

@ -3,3 +3,4 @@
flake8
pybadges
pyinstaller
yamllint