diff --git a/.github/workflows/backend-linter-and-tester.yml b/.github/workflows/backend-linter-and-tester.yml new file mode 100644 index 0000000..cf9d0b4 --- /dev/null +++ b/.github/workflows/backend-linter-and-tester.yml @@ -0,0 +1,26 @@ +name: Pylint +on: [push] +jobs: + Backend-Linter-and-Test: + runs-on: ubuntu-latest + env: + PYTHON_VERSION: "3.10.12" + defaults: + run: + working-directory: ./backend + steps: + - uses: actions/checkout@v4 + - name: Set up Python $PYTHON_VERSION + uses: actions/setup-python@v3 + with: + python-version: ${{ env.PYTHON_VERSION }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Analysing the code with pylint + run: | + pylint $(git ls-files '*.py') + - name: Run tests + run: | + pytest diff --git a/.github/workflows/backend-linter.yml b/.github/workflows/backend-linter.yml deleted file mode 100644 index 5f011da..0000000 --- a/.github/workflows/backend-linter.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Pylint -on: [push] -jobs: - Backend-Linter: - runs-on: ubuntu-latest - env: - PYTHON_VERSION: "3.10.12" - defaults: - run: - working-directory: ./backend - steps: - - uses: actions/checkout@v4 - - name: Set up Python $PYTHON_VERSION - uses: actions/setup-python@v3 - with: - python-version: ${{ env.PYTHON_VERSION }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - - name: Analysing the code with pylint - run: | - pylint $(git ls-files '*.py') - - - - - - diff --git a/frontend/src/pages/Books/BookForm.tsx b/frontend/src/pages/Books/BookForm.tsx index 8e45d42..f3e25b7 100644 --- a/frontend/src/pages/Books/BookForm.tsx +++ b/frontend/src/pages/Books/BookForm.tsx @@ -104,6 +104,8 @@ const BookForm: React.FC = () => { return (
+

Book's Authors

+
);