Skip to content

Commit

Permalink
Installed dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
riadelimemmedov committed Jan 31, 2024
1 parent 65e004a commit 5873de8
Show file tree
Hide file tree
Showing 3 changed files with 558 additions and 54 deletions.
86 changes: 33 additions & 53 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.10.0] # Updated to Python 3.9
python-version: [3.10.0] # Updated to Python 3.10
poetry-version: [1.7.1]
os: [windows-latest]
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -43,55 +43,35 @@ jobs:
- name: Install dependencies
run: |
python -m poetry install
# - name: Run tests
# run: |
# python -m poetry run python -m pytest -sxv
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v3
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install poetry
# uses: abatilo/actions-poetry@v2.0.0
# with:
# poetry-version: ${{ matrix.poetry-version }}
# - name: Install dependencies
# run: poetry install
# - name: Run tests
# run: poetry run pytest tests.py --cov=./ --cov-report=xml
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v3
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# code-quality:
# strategy:
# fail-fast: false
# matrix:
# python-version: [3.9]
# poetry-version: [1.7.1]
# os: [windows-latest]
# runs-on: ${{ matrix.os }}
# defaults:
# run:
# working-directory: backend/
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v3
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install poetry
# uses: abatilo/actions-poetry@v2.0.0
# with:
# poetry-version: ${{ matrix.poetry-version }}
# - name: Install dependencies
# run: poetry install
# # - name: Run automatically format code if not formatted
# # run: bash format_code.sh
# - name: Run black
# run: poetry run black .
# - name: Run isort
# run: poetry run isort . --profile black
# - name: Run flake8
# run: poetry run flake8 .
# - name: Run bandit
# run: poetry run bandit .
code-quality:
strategy:
fail-fast: false
matrix:
python-version: [3.10]
poetry-version: [1.7.1]
os: [windows-latest]
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: backend/
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
run: |
python -m pip install poetry==1.7.1
- name: Install dependencies
run: |
python -m poetry install
# - name: Run automatically format code if not formatted
# run: bash format_code.sh
- name: Run black
run: poetry run black .
- name: Run isort
run: poetry run isort . --profile black
- name: Run flake8
run: poetry run flake8 .
- name: Run bandit
run: poetry run bandit .
Loading

0 comments on commit 5873de8

Please sign in to comment.