Skip to content

Commit

Permalink
Adjust Github action workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
toddbirchard committed Nov 14, 2023
1 parent 120f886 commit 42b950e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,28 @@ on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: "3.10"

- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
- name: 'auth'
uses: 'google-github-actions/auth@v1'
- name: "auth"
uses: "google-github-actions/auth@v1"
with:
credentials_json: ${{ secrets.GOOGLE_CLOUD_JSON_KEY }}

- name: Lint with flake8
run: |
python3 -m pip install flake8
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
Expand Down Expand Up @@ -70,4 +70,5 @@ jobs:
GH_USERNAME: ${{ secrets.GH_USERNAME }}
GH_API_KEY: ${{ secrets.GH_API_KEY }}
run: |
python3 -m pip install pytest coverage
pytest

0 comments on commit 42b950e

Please sign in to comment.