Skip to content

correccion en permisos en el workflow #95

correccion en permisos en el workflow

correccion en permisos en el workflow #95

Workflow file for this run

name: Tuki Testing CI
on:
workflow_dispatch:
push:
pull_request:
branches:
- main
- develop
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
PYTHON_VERSION: "3.10"
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Set up Python and dependency cache
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: "poetry"
- name: Install dependencies
run: poetry install
- name: Test Game module
run: |
poetry run coverage run -m pytest ${{ env.TEST_DIRECTORY }}/game_tests
rm -f $TEST_DB_FILE
- name: Test Player module
run: |
poetry run coverage run -m pytest ${{ env.TEST_DIRECTORY }}/player_tests
rm -f $TEST_DB_FILE
- name: Test Card module
run: |
poetry run coverage run -m pytest ${{ env.TEST_DIRECTORY }}/card_tests
rm -f $TEST_DB_FILE