Skip to content

function name change #20

function name change

function name change #20

Workflow file for this run

name: tests_workflow
on:
push:
workflow_dispatch:
jobs:
run-tests:
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up RabbitMQ
run: |
docker run -d --name rabbitmq-server \
-p 5672:5672 -p 15672:15672 \
-e RABBITMQ_DEFAULT_USER=root \
-e RABBITMQ_DEFAULT_PASS=password \
-e RABBITMQ_DEFAULT_VHOST=myMrsalHost \
rabbitmq:3.9.21-management
# Install dependencies to Rabbitmq container
docker exec rabbitmq-server sh -c "\
apt-get update && \
apt-get install -y curl unzip \
"
# Download and install the rabbitmq_delayed_message_exchange plugin to Rabbitmq container
docker exec rabbitmq-server sh -c "\
curl -L https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases/download/3.9.0/rabbitmq_delayed_message_exchange-3.9.0.ez > $RABBITMQ_HOME/plugins/rabbitmq_delayed_message_exchange-3.9.0.ez && \
chown rabbitmq:rabbitmq $RABBITMQ_HOME/plugins/rabbitmq_delayed_message_exchange-3.9.0.ez \
"
# Enable plugin in to Rabbitmq container
docker exec rabbitmq-server sh -c "\
rabbitmq-plugins enable rabbitmq_delayed_message_exchange \
"
- name: Wait for RabbitMQ to start
run: |
until docker exec rabbitmq-server rabbitmqctl list_queues -p myMrsalHost; do
sleep 1
done
- name: Display RabbitMQ status
run: docker exec rabbitmq-server rabbitmqctl status
- name: List containers
run: docker ps
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
- name: Install project dependencies
run: poetry install
- name: list files
run: ls -ltrha
- name: print GITHUB_WORKSPACE
run: echo $GITHUB_WORKSPACE
- name: Run tests
run: poetry run nox
- name: list project content
run: ls -ltrha