-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
63 additions
and
28 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Farol Verde Tests | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
Cypress: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository content | ||
uses: actions/checkout@v2 | ||
- name: Run Project containers | ||
run: docker-compose up -d | ||
- name: Run Migrate | ||
run: docker exec farol_verde_server /bin/bash -c "python manage.py migrate" | ||
- name: Run Cypress | ||
run: docker exec farol_verde_tests /bin/bash -c "cd /tests && cypress run" | ||
|
||
Pytest: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository content | ||
uses: actions/checkout@v2 | ||
- name: Run Project containers | ||
run: docker-compose up -d | ||
- name: Run Pytest | ||
run: docker exec farolwagtail /bin/bash -c "pytest ." | ||
|
||
Black: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository content | ||
uses: actions/checkout@v2 | ||
- name: Run Project containers | ||
run: docker-compose up -d | ||
- name: Run Black Check | ||
run: docker exec farolwagtail /bin/bash -c "black --check ." |
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 |
---|---|---|
|
@@ -2,3 +2,5 @@ __pycache__/ | |
*.pyc | ||
.vscode* | ||
landing/static | ||
/tests/cypress/videos | ||
/tests/cypress/screenshots |
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
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
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
This file was deleted.
Oops, something went wrong.