Skip to content

Commit

Permalink
github workflows updated
Browse files Browse the repository at this point in the history
  • Loading branch information
yacmov committed May 30, 2024
1 parent b143b81 commit dbb9e7b
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 35 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/accesibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Accessibility

on:
push:
branches: [ "main" ]
branches: [ "main", "auto-test" ]
pull_request:
branches: [ "main" ]
branches: [ "main", "auto-test" ]
workflow_dispatch:

permissions:
Expand Down
36 changes: 18 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: Build

on:
push:
branches: [ "main" ]
branches: ["main", "auto-test"]
pull_request:
branches: [ "main" ]
branches: ["main", "auto-test"]
workflow_dispatch:

permissions:
Expand All @@ -20,19 +20,19 @@ jobs:
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 --show-source --max-complexity=10 --max-line-length=120 --statistics
- 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 --show-source --max-complexity=10 --max-line-length=120 --statistics
30 changes: 15 additions & 15 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: Tests

on:
push:
branches: [ "main" ]
branches: ["main", "auto-test"]
pull_request:
branches: [ "main" ]
branches: ["main", "auto-test"]
workflow_dispatch:

permissions:
Expand All @@ -20,16 +20,16 @@ jobs:
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 pytest-cov pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
run: |
pytest --cov-report term-missing --cov=app tests/
- 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 pytest-cov pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
run: |
pytest --cov-report term-missing --cov=app tests/

0 comments on commit dbb9e7b

Please sign in to comment.