se agregan los demas steps para testear modulo player y card #14
Workflow file for this run
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
name: Tuki Testing CI | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
ENVIRONMENT: test | |
TEST_DIRECTORY: ${{ github.workspace }}/app/tests | |
TEST_DB_FILE: ${{ github.workspace }}/app/database/database_test.sqlite | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
pip install poetry | |
poetry install | |
- name: Test Game module | |
run: | | |
poetry run coverage run -m pytest $TEST_DIRECTORY/game_tests | |
rm -f $TEST_DB_FILE | |
- name: Test Player module | |
run: | | |
poetry run coverage run -m pytest $TEST_DIRECTORY/player_tests | |
rm -f $TEST_DB_FILE | |
- name: Test Card module | |
run: | | |
poetry run coverage run -m pytest $TEST_DIRECTORY/card_tests | |
rm -f $TEST_DB_FILE |