Skip to content

chg: Bump deps

chg: Bump deps #48

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.10', '3.11', '3.12']
name: Python ${{ matrix.python-version }} sample
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{matrix.python-version}}
- 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: Install with poetry
run: |
python -m pip install --upgrade pip poetry
poetry install
echo PROJECTNAME_HOME=`pwd` > .env
poetry run start
- name: Clone pyproject_template
uses: actions/checkout@v4
with:
repository: Lookyloo/pyproject_template
path: pyproject_template
- name: Run API tests
run: |
pushd pyproject_template
poetry install
poetry run pytest tests/test_web.py
popd
- name: Stop instance
run: |
poetry run stop
- name: Test update script
run: |
poetry run update --yes
sleep 30
poetry run stop