All checks were successful
Test Helper Module / test (3.11.5) (push) Successful in 29s
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
name: "Test Helper Module"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- gabby-dev
|
|
- josh-dev
|
|
pull_request:
|
|
types: [opened]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
shell: bash -el {0}
|
|
strategy:
|
|
matrix:
|
|
python-version: [3.11.5]
|
|
|
|
steps:
|
|
- uses: https://github.com/actions/checkout@v4.1.1
|
|
|
|
- name: Setup Poetry
|
|
uses: Gr1N/setup-poetry@v9
|
|
|
|
- name: Install dependencies
|
|
shell: bash -l {0}
|
|
run: |
|
|
poetry install
|
|
|
|
- name: add database.ini
|
|
shell: bash -l {0}
|
|
run: |
|
|
cd $GITHUB_WORKSPACE/
|
|
touch database.ini
|
|
echo "${{ secrets.DATABASE_INI }}" >> xiv-database.ini
|
|
|
|
- name: Run tests
|
|
shell: bash -l {0}
|
|
run: |
|
|
cd $GITHUB_WORKSPACE
|
|
poetry run python -m pytest ./src/py/db_helper_tests.py
|