ci: Schedule python-tests.yml (#211)

* ci: Schedule python-tests.yml

* ci: use emojis

* ci: Bump action versions python-tests.yml

* ci: python-tests.yml
This commit is contained in:
Anush
2024-04-26 10:28:37 +05:30
committed by GitHub
parent cc4112d859
commit 466886a317
2 changed files with 17 additions and 9 deletions

View File

@@ -3,6 +3,8 @@ name: Tests
on:
push:
branches: [ master, main ]
schedule:
- cron: 0 0 * * *
pull_request:
env:
@@ -29,9 +31,9 @@ jobs:
name: Python ${{ matrix.python-version }} on ${{ matrix.os }} test
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
@@ -39,8 +41,14 @@ jobs:
python -m pip install poetry
poetry config virtualenvs.create false
poetry install --no-interaction --no-ansi --without docs
- name: Run tests
run: |
export IS_UBUNTU_CI=$(test "${{ matrix.os }}" = "ubuntu-latest" && echo "true" || echo "false")
pytest
shell: bash
- name: Install Test Dependencies
run: pip install pytest pytest-md pytest-emoji
- name: Run pytest
uses: pavelzw/pytest-action@v2
with:
verbose: true
emoji: true
job-summary: true
report-title: 'FastEmbed Test Report'