Updating GHES workflows
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
name: Django CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ $default-branch ]
|
||||
pull_request:
|
||||
branches: [ $default-branch ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
max-parallel: 4
|
||||
matrix:
|
||||
python-version: [3.7, 3.8, 3.9]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v3
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
- name: Run Tests
|
||||
run: |
|
||||
python manage.py test
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "Django",
|
||||
"description": "Build and Test a Django Project",
|
||||
"iconName": "django",
|
||||
"categories": ["Continuous integration", "Python", "Django"]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "Pylint",
|
||||
"description": "Lint a Python application with pylint.",
|
||||
"iconName": "python",
|
||||
"categories": ["Continuous integration", "Python", "Bottle", "Flask"]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "Python application",
|
||||
"description": "Create and test a Python application.",
|
||||
"iconName": "python",
|
||||
"categories": ["Continuous integration", "Python", "Bottle", "Flask"]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "Python Package using Anaconda",
|
||||
"description": "Create and test a Python package on multiple Python versions using Anaconda for package management.",
|
||||
"iconName": "python",
|
||||
"categories": ["Continuous integration", "Python"]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "Python package",
|
||||
"description": "Create and test a Python package on multiple Python versions.",
|
||||
"iconName": "python",
|
||||
"categories": ["Continuous integration", "Python", "Bottle", "Flask"]
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
name: Pylint
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ["3.8", "3.9", "3.10"]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v3
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install pylint
|
||||
- name: Analysing the code with pylint
|
||||
run: |
|
||||
pylint $(git ls-files '*.py')
|
||||
@@ -0,0 +1,39 @@
|
||||
# This workflow will install Python dependencies, run tests and lint with a single version of Python
|
||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
|
||||
|
||||
name: Python application
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ $default-branch ]
|
||||
pull_request:
|
||||
branches: [ $default-branch ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python 3.10
|
||||
uses: actions/setup-python@v3
|
||||
with:
|
||||
python-version: "3.10"
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install flake8 pytest
|
||||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||
- name: Lint with flake8
|
||||
run: |
|
||||
# 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: |
|
||||
pytest
|
||||
@@ -0,0 +1,34 @@
|
||||
name: Python Package using Conda
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build-linux:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
max-parallel: 5
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python 3.10
|
||||
uses: actions/setup-python@v3
|
||||
with:
|
||||
python-version: 3.10
|
||||
- name: Add conda to system path
|
||||
run: |
|
||||
# $CONDA is an environment variable pointing to the root of the miniconda directory
|
||||
echo $CONDA/bin >> $GITHUB_PATH
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
conda env update --file environment.yml --name base
|
||||
- name: Lint with flake8
|
||||
run: |
|
||||
conda 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: |
|
||||
conda install pytest
|
||||
pytest
|
||||
@@ -0,0 +1,40 @@
|
||||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
|
||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
|
||||
|
||||
name: Python package
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ $default-branch ]
|
||||
pull_request:
|
||||
branches: [ $default-branch ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
python-version: ["3.8", "3.9", "3.10"]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v3
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install flake8 pytest
|
||||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||
- name: Lint with flake8
|
||||
run: |
|
||||
# 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: |
|
||||
pytest
|
||||
@@ -0,0 +1 @@
|
||||
<svg fill="none" height="48" width="48" xmlns="http://www.w3.org/2000/svg"><g fill="#2ba977"><path d="M21.093 0h7.933v36.022c-4.064.762-7.055 1.061-10.292 1.061C9.044 37.073 4 32.785 4 24.55c0-7.936 5.35-13.086 13.641-13.086 1.287 0 2.267.1 3.452.4zm.278 18.355c-.93-.3-1.695-.4-2.676-.4-4.012 0-6.33 2.424-6.33 6.673 0 4.137 2.216 6.422 6.28 6.422.878 0 1.592-.05 2.726-.2z"/><path d="M42 12.43v18.035c0 6.212-.47 9.199-1.848 11.774-1.287 2.476-2.982 4.037-6.484 5.761l-7.362-3.437c3.503-1.612 5.198-3.037 6.28-5.211 1.133-2.223 1.49-4.798 1.49-11.572V12.43zM33.277 0h7.934v7.986h-7.934z"/></g></svg>
|
||||
|
After Width: | Height: | Size: 601 B |
@@ -0,0 +1 @@
|
||||
<svg fill="none" height="48" width="48" xmlns="http://www.w3.org/2000/svg"><path d="M0 23.591c.02-.066.036-.134.045-.202.037-.697.045-1.402.12-2.1.117-2.26.871-4.44 2.175-6.29a6.322 6.322 0 015.085-2.565H23.61c.315 0 .315 0 .315-.315v-1.125c0-.232-.068-.284-.285-.284H12.623c-.188 0-.255-.053-.255-.248V4.966c.036-.796.368-1.55.93-2.115a6.683 6.683 0 012.707-1.747 16.668 16.668 0 013.9-.892 32.843 32.843 0 015.482-.165c1.972.037 3.923.399 5.776 1.072a7.095 7.095 0 013.24 2.25 4.536 4.536 0 01.945 3.074c-.045.93 0 1.867 0 2.804v5.19c0 1.019 0 2.046-.045 3.058a5.421 5.421 0 01-3.518 5.04 8.042 8.042 0 01-3.143.599h-11.46a6.54 6.54 0 00-3.45.907 5.999 5.999 0 00-2.647 3.704 8.656 8.656 0 00-.323 2.377v5.196c0 .345 0 .338-.345.345-1.245 0-2.49.038-3.75 0A5.25 5.25 0 013.345 34.3a8.248 8.248 0 01-2.295-3.554 15.142 15.142 0 01-.848-3.847c-.075-.84-.105-1.68-.157-2.512A2.475 2.475 0 000 24.11v-.518z" fill="#3772a4"/><path d="M15.203 5.738a2.107 2.107 0 102.107-2.122 2.123 2.123 0 00-2.107 2.122z" fill="#000"/><path d="M15.203 5.738a2.11 2.11 0 114.22 0 2.11 2.11 0 01-4.22 0z" fill="#fff"/><path d="M48 24.401c-.02.066-.036.134-.045.203-.037.697-.045 1.402-.12 2.1a11.995 11.995 0 01-2.175 6.29 6.322 6.322 0 01-5.085 2.572H24.39c-.315 0-.315 0-.315.315v1.125c0 .232.068.285.285.285h11.018c.187 0 .255.052.255.247v5.496a3.209 3.209 0 01-.93 2.115 6.683 6.683 0 01-2.708 1.747 16.669 16.669 0 01-3.892.892c-1.82.208-3.654.263-5.483.165a17.877 17.877 0 01-5.775-1.072 7.095 7.095 0 01-3.24-2.25 4.536 4.536 0 01-.945-3.074c.045-.93 0-1.867 0-2.804v-5.19c0-1.019 0-2.046.045-3.058a5.42 5.42 0 013.517-5.04 8.042 8.042 0 013.143-.599h11.453a6.54 6.54 0 003.45-.907 6 6 0 002.647-3.712 8.66 8.66 0 00.323-2.377v-5.196c0-.345 0-.337.345-.345 1.245 0 2.49-.037 3.75 0a5.25 5.25 0 013.322 1.365 8.249 8.249 0 012.295 3.554 15.15 15.15 0 01.84 3.861c.075.84.105 1.68.158 2.512.01.091.025.181.045.27.005.165.007.335.007.51z" fill="#ffda4b"/><path d="M32.797 41.992a2.107 2.107 0 10-2.107 2.122 2.123 2.123 0 002.107-2.122z" fill="#000"/><path d="M32.797 41.992a2.11 2.11 0 11-4.22 0 2.11 2.11 0 014.22 0z" fill="#fff"/></svg>
|
||||
|
After Width: | Height: | Size: 2.1 KiB |
Reference in New Issue
Block a user