Skip to content
This repository has been archived by the owner on Nov 28, 2024. It is now read-only.

build(deps): bump endorlabs/github-action from e3c2c24b65c64607c2997c6a264bf27ca75d90be to 5f104e128de8d0c4d1174878aedbafdd85be3e79 in the github-actions group #759

build(deps): bump endorlabs/github-action from e3c2c24b65c64607c2997c6a264bf27ca75d90be to 5f104e128de8d0c4d1174878aedbafdd85be3e79 in the github-actions group

build(deps): bump endorlabs/github-action from e3c2c24b65c64607c2997c6a264bf27ca75d90be to 5f104e128de8d0c4d1174878aedbafdd85be3e79 in the github-actions group #759

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python application
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
api.github.com:443
files.pythonhosted.org:443
github.com:443
objects.githubusercontent.com:443
pypi.org:443
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Python 3.11.8
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: "3.11.8"
- 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