Skip to content

chg: Use proper GHA for cloning #139

chg: Use proper GHA for cloning

chg: Use proper GHA for cloning #139

Workflow file for this run

name: Python application - API Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
name: Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{matrix.python-version}}
cache: 'poetry'
- name: Install with poetry
run: |
poetry install
echo LACUS_HOME=`pwd` > .env
poetry run playwright install
poetry run playwright install-deps
- name: Clone Redis
uses: actions/checkout@v4
with:
repository: redis/redis
path: redis-tmp
ref: 7.2
- name: Install redis
run: |
mv redis-tmp ../redis
pushd ..
pushd redis
make
popd
popd
- name: Clone PyLacus
uses: actions/checkout@v4
with:
repository: ail-project/PyLacus
- name: Run API tests
run: |
poetry run start
pushd PyLacus
poetry install
poetry run pytest tests/test_web.py
popd
poetry run stop
- name: Test update script
run: |
poetry run update --yes
sleep 30
poetry run stop