Skip to content

send_payload_to_pytest #27

send_payload_to_pytest

send_payload_to_pytest #27

name: Run Tests Multi-OS
on:
repository_dispatch:
types:
- send_payload_to_pytest
jobs:
run_tests:
strategy:
matrix:
os: ${{ github.event.client_payload.os_list }}
python-version: ${{ github.event.client_payload.version_list }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set timezone
uses: szenius/[email protected]
with:
timezoneLinux: "Asia/Tokyo"
timezoneMacos: "Asia/Tokyo"
timezoneWindows: "Tokyo Standard Time"
- name: Install poetry
run: |
pip install poetry
echo "Poetry version: $(poetry --version)"
- name: Cache dependencies
uses: actions/[email protected]
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: |
poetry install
echo "Installed dependencies:"
poetry show --tree
- name: Run tests
run: |
poetry run pytest