generated from libresource/pygenesis
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update test structure and GitHub Actions configuration
- Removed try-except block from test_django_configuration and test_database_connection to ensure proper execution of tests. - Updated `lint.yml` GitHub Actions configuration to trigger on both push and pull_request events. - Improved test clarity and streamlined error handling. - Ensured all tests pass locally before pushing changes. This update resolves issues with failed tests and ensures GitHub Actions run correctly in pull requests. closes #3
- Loading branch information
Showing
2 changed files
with
17 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
name: Lint | ||
|
||
on: [push] | ||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.11' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
if [ -f dev-requirements.txt ]; then pip install -r dev-requirements.txt; fi | ||
- name: Analysing the code with pylint and yamllint | ||
run: | | ||
make lint | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.11' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
if [ -f dev-requirements.txt ]; then pip install -r dev-requirements.txt; fi | ||
- name: Analysing the code with pylint and yamllint | ||
run: | | ||
make lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters