Skip to content

Commit

Permalink
Test run
Browse files Browse the repository at this point in the history
  • Loading branch information
atapin committed Jul 5, 2024
1 parent e258bf4 commit 48c5ef9
Showing 1 changed file with 28 additions and 24 deletions.
52 changes: 28 additions & 24 deletions .github/workflows/app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,30 +46,34 @@ jobs:
- name: Install dependencies
run: poetry install

- name: run
- name: Style check
run: |
poetry run python -m pytest tests
flake8:
needs: changes
#if: ${{ needs.changes.outputs.py_modified == 'true' }}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Install poetry
run: pipx install poetry

- name: Setup python
uses: actions/setup-python@v5
with:
python-version: 3.9
cache: "poetry"

- name: Install dependencies
run: poetry install
poetry run flake8 ${{ needs.changes.outputs.py_modified_files }}
- name: run
- name: Tests
run: |
poetry run flake8 ${{ needs.changes.outputs.py_modified_files }}
poetry run python -m pytest tests
# flake8:
# needs: changes
# #if: ${{ needs.changes.outputs.py_modified == 'true' }}
# runs-on: ubuntu-latest
#
# steps:
# - uses: actions/checkout@v3
#
# - name: Install poetry
# run: pipx install poetry
#
# - name: Setup python
# uses: actions/setup-python@v5
# with:
# python-version: 3.9
# cache: "poetry"
#
# - name: Install dependencies
# run: poetry install
#
# - name: run
# run: |
# poetry run flake8 ${{ needs.changes.outputs.py_modified_files }}

0 comments on commit 48c5ef9

Please sign in to comment.