Zernit/.github/workflows/python.yml

391 lines
15 KiB
YAML
Raw Normal View History

Master init (#40) * fdjfgjdfg * jghkfghkf * fgdfjfghj * sgassg * jksdhgjkasdnh * Adapted code * add vlang * hkghkgh * sdgasdg * sagsdag * gjghfj * hjfghkf * dgsghafh * gjfgjfd * fdhfhfgj * Update gitpod.Dockerfile * fixes * fixes * gjhfhghk * xdgad * dsgasdg * shebang test * sagaga * shash * jfhjgh * hfgdj * dgsdfhsdf * Update gitpod.Dockerfile * dshsfd * hgkgk * ffhdfgj * Update vlang_init.sh * Update vlang_init.sh * agsah * ffgjghjfgh * jghkfg * jghjfh * hdhsfdh * fdhfgj * fdhsfdh * fghdfgh * sdgag * dshas * vcmvmvb * sdagasdg * shfdh * sdagsdag * dfhfgd * Update cargo-make requirement from 0.26.2 to 0.27.0 Updates the requirements on [cargo-make](https://github.com/sagiegurari/cargo-make) to permit the latest version. - [Release notes](https://github.com/sagiegurari/cargo-make/releases) - [Changelog](https://github.com/sagiegurari/cargo-make/blob/master/CHANGELOG.md) - [Commits](https://github.com/sagiegurari/cargo-make/compare/0.26.2...0.27.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * test * Bump termcolor from 1.0.0 to 1.1.0 Bumps [termcolor](http://pypi.python.org/pypi/termcolor) from 1.0.0 to 1.1.0. Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * fdhsfh * Create jekyll.yml * dsadsh * fdhgj * sagsag * sagag * hfgj * sdgsdag * dgasdga * hghkh * sagas * gjkghkf * safsaf * gjfkf * stub * djknsfdjknh * sdgasdg * asasg * safsa * gagsd * IT'S YOUR TURN TRAVIS MUHAHAH * shfdhsfd * gfgj * dfhfgdj * fgkfhg * fdhhsf * fghkjgh * fhdfjh * safsa * sagasga * sdgdsfh * saagsga * gjhlghl * jklhj * gfghkg * gfjdfgj * nm,;n * kljlk'j * jk'jkl' * saasga * sdgasdg * gjghk * dhsfh * fdhsfdj * hkgjkgh * asgsa * fhfgjfg * RUNALISA! * asgas * sasgd * fdfgj * dsfhdsf * fhdfhs * sagasg * sagasg * Fix C and adapt more sanity checks * shdfh * sagsag * safasf * sag * hgjl * asgasg * sgagsa * asfasf * safasf * sasag * fdjfgj * fjdgj * sagasg * Why can't i see the hugging source for this GUI? #ThanksMicrosoft * saksdakhla * jhlgj * hjglh * sdgdasg * saga * safsaf * sagag * fdhsfdh * safasf * fdhjsfdh * PLEASE JUST FUCKING WORK * SAGSAG * sagasg * agaahds * end my suffering * hgkkfkg * all hail twofifths the savior * sagasga * fdhfgh * dgsgh * khgk * asgasg * ddfjhfg * asgagasg * fhdshfd * asasgsagas * hgkg * saasg * saagg * ffdjgf * hlj * vbbghkk * safasf * safsaf * sdhdfh * fdhsdh * saag * sagag * safasf * asgasg * ffgjfg * f54hs6f5d4h * sagasg * dsgasg * sgasdg * gfjfgj * cfghd * fhddfgj * dsgsagd * shsadh * fhdf * fdjhfg * asgasga * sdgag * fjfdgjdf * fdhsfdh * asgsa * sagasg * sagasg * sagasg * dsgsdha * fdhsfhd * YoU cAnT dO tHiS iN ShElL kReY * tetats * gfjdfgj * sagsag * fgj * bvghkf * gfhdfghfg * sdagsadg * sdgasdg * agaas * dassfd * vbghf * jghkgh * hfgdj * gjkjlg * sdgfdg * asgag * fgkgkh * fdhsfdh * dsgasdg * dsgsg * fgj * safsaf * agsgd * Finally we have theia config Relevant: https://github.com/gitpod-io/gitpod/issues/800#issuecomment-587381366 * agsdgh * kjghkgg * vjfgjfgd * add dia * flowchart: init * adgasdg * Update Zernit.drawio * Update Zernit.drawio * Update Zernit.drawio * asdgsdag * fddfhs * saasg * sasag * dgasdgasd * dsgasdg * Create question.md * Update labels.yml * do not bother bug wranglers with questions * sasaasgd * dhfdh * safasf * dsgasdg * Update debian.Dockerfile * dsagasdg * Update debian.Dockerfile * sdghsdf * agasd * Update cargo-make requirement from 0.27.0 to 0.28.0 (#58) Updates the requirements on [cargo-make](https://github.com/sagiegurari/cargo-make) to permit the latest version. - [Release notes](https://github.com/sagiegurari/cargo-make/releases) - [Changelog](https://github.com/sagiegurari/cargo-make/blob/master/CHANGELOG.md) - [Commits](https://github.com/sagiegurari/cargo-make/compare/0.27.0...0.28.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * stub for RXT ownership * Create other.md * Create legal-request.yml * Rename legal-request.yml to legal-request.md * Update bug_report.md * sgsfdh * saga * stub license * Initial configuration Co-authored-by: @Klairm <ivangardis@hotmail.com> - Thanks for C contrib! Co-authored-by: @Uniminin <uniminin@zoho.com> - Thanks for the contribution of annoyance and python! Co-authored-by: @JesterOrNot <seanhellum45@gmail.com> - Thanks for gitpod contrib! https://github.com/RXT0112/Zernit/pull/32 - Thanks for issue-meggage in https://github.com/RXT0112/Zernit/pull/23! Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-18 07:23:24 +01:00
# Workflow for python
name: Python
# Relevant to events - https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows
on:
pull_request:
types: [synchronize, opened, reopened, ready_for_review]
paths:
- '**.py'
- 'requirements.txt'
jobs:
# Linting 3.5
lint-linux-python-3_5:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Configuring backend..
uses: actions/setup-python@v1
with:
python-version: 3.5
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pip install pytest
# FIXME: False triggers on files which names continues after set extension
cd "$GITHUB_WORKSPACE" && for file in $(git ls-tree --name-only -r ${{ github.sha }} | grep '\.py$'); do pytest "$file"; done
lint-macos-python-3_5:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Configuring backend..
uses: actions/setup-python@v1
with:
python-version: 3.5
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pip install pytest
# FIXME: False triggers on files which names continues after set extension
cd "$GITHUB_WORKSPACE" && for file in $(git ls-tree --name-only -r ${{ github.sha }} | grep '\.py$'); do pytest "$file"; done
lint-windows-python-3_5:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Configuring backend..
uses: actions/setup-python@v1
with:
python-version: 3.5
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pip install pytest
# FIXME: False triggers on files which names continues after set extension
cd "$GITHUB_WORKSPACE" && for file in $(git ls-tree --name-only -r ${{ github.sha }} | grep '\.py$'); do pytest "$file"; done
security-check-python-3_5:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Configuring backend..
uses: actions/setup-python@v1
with:
python-version: 3.5
- name: Installing python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Installing linting dependencies
run: |
if apt list --installed | grep -qP "^bandit -"; then sudo apt install -y bandit; fi
- name: Linting..
run: |
cd "$GITHUB_WORKSPACE" && for file in $(git ls-tree --name-only -r ${{ github.sha }} | grep '\.py$'); do
printf 'checking python file %s for security issues\n' "$file"
bandit "$file"
done
# Linting 3.6
lint-linux-python-3_6:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Configuring backend..
uses: actions/setup-python@v1
with:
python-version: 3.6
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pip install pytest
# FIXME: False triggers on files which names continues after set extension
cd "$GITHUB_WORKSPACE" && for file in $(git ls-tree --name-only -r ${{ github.sha }} | grep '\.py$'); do pytest "$file"; done
lint-macos-python-3_6:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Configuring backend..
uses: actions/setup-python@v1
with:
python-version: 3.6
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pip install pytest
# FIXME: False triggers on files which names continues after set extension
cd "$GITHUB_WORKSPACE" && for file in $(git ls-tree --name-only -r ${{ github.sha }} | grep '\.py$'); do pytest "$file"; done
lint-window-python-3_6:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Configuring backend..
uses: actions/setup-python@v1
with:
python-version: 3.6
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pip install pytest
# FIXME: False triggers on files which names continues after set extension
cd "$GITHUB_WORKSPACE" && for file in $(git ls-tree --name-only -r ${{ github.sha }} | grep '\.py$'); do pytest "$file"; done
security-check-python-3_6:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Configuring backend..
uses: actions/setup-python@v1
with:
python-version: 3.6
- name: Installing python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Installing linting dependencies
run: |
if apt list --installed | grep -qP "^bandit -"; then sudo apt install -y bandit; fi
- name: Linting..
run: |
cd "$GITHUB_WORKSPACE" && for file in $(git ls-tree --name-only -r ${{ github.sha }} | grep '\.py$'); do
printf 'checking python file %s for security issues\n' "$file"
bandit "$file"
done
# Linting 3.7
lint-linux-python-3_7:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Configuring backend..
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pip install pytest
# FIXME: False triggers on files which names continues after set extension
cd "$GITHUB_WORKSPACE" && for file in $(git ls-tree --name-only -r ${{ github.sha }} | grep '\.py$'); do pytest "$file"; done
lint-macos-python-3_7:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Configuring backend..
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pip install pytest
# FIXME: False triggers on files which names continues after set extension
cd "$GITHUB_WORKSPACE" && for file in $(git ls-tree --name-only -r ${{ github.sha }} | grep '\.py$'); do pytest "$file"; done
lint-windows-python-3_7:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Configuring backend..
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pip install pytest
# FIXME: False triggers on files which names continues after set extension
cd "$GITHUB_WORKSPACE" && for file in $(git ls-tree --name-only -r ${{ github.sha }} | grep '\.py$'); do pytest "$file"; done
security-check-python-3_7:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Configuring backend..
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Installing python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Installing linting dependencies
run: |
if apt list --installed | grep -qP "^bandit -"; then sudo apt install -y bandit; fi
- name: Linting..
run: |
cd "$GITHUB_WORKSPACE" && for file in $(git ls-tree --name-only -r ${{ github.sha }} | grep '\.py$'); do
printf 'checking python file %s for security issues\n' "$file"
bandit "$file"
done
# Linting 3.8
lint-linux-python-3_8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Configuring backend..
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pip install pytest
# FIXME: False triggers on files which names continues after set extension
cd "$GITHUB_WORKSPACE" && for file in $(git ls-tree --name-only -r ${{ github.sha }} | grep '\.py$'); do pytest "$file"; done
lint-macos-python-3_8:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Configuring backend..
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pip install pytest
# FIXME: False triggers on files which names continues after set extension
cd "$GITHUB_WORKSPACE" && for file in $(git ls-tree --name-only -r ${{ github.sha }} | grep '\.py$'); do pytest "$file"; done
lint-windows-python-3_8:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Configuring backend..
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pip install pytest
# FIXME: False triggers on files which names continues after set extension
cd "$GITHUB_WORKSPACE" && for file in $(git ls-tree --name-only -r ${{ github.sha }} | grep '\.py$'); do pytest "$file"; done
security-check-python-3_8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Configuring backend..
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Installing python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Installing linting dependencies
run: |
if apt list --installed | grep -qP "^bandit -"; then sudo apt install -y bandit; fi
- name: Linting..
run: |
cd "$GITHUB_WORKSPACE" && for file in $(git ls-tree --name-only -r ${{ github.sha }} | grep '\.py$'); do
printf 'checking python file %s for security issues\n' "$file"
bandit "$file"
done