Skip to content

Commit

Permalink
ci: implement testing to github pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielborgesdm committed Jun 4, 2024
1 parent fcbb0bf commit f789118
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 29 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/backend-linter-and-tester.yml
Original file line number Diff line number Diff line change
@@ -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
29 changes: 0 additions & 29 deletions .github/workflows/backend-linter.yml

This file was deleted.

2 changes: 2 additions & 0 deletions frontend/src/pages/Books/BookForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ const BookForm: React.FC = () => {

return (
<div className="col-span-12">
<h1 className="text-base font-semibold leading-7 text-gray-900">Book&apos;s Authors</h1>
<hr className="mb-4" />
<Table {...tableProps} />
</div>
);
Expand Down

0 comments on commit f789118

Please sign in to comment.