Skip to content

Added files pylint, integration tests, CI, workflow #1

Added files pylint, integration tests, CI, workflow

Added files pylint, integration tests, CI, workflow #1

Workflow file for this run

name: Workflow
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Create .env file
run: |
cat << EOF > /home/runner/work/spotnet/spotnet/.env
ENV_VERSION=DEV
STARKNET_NODE_URL=${{ env.STARKNET_NODE_URL }}
DB_USER=${{ env.DB_USER }}
DB_PASSWORD=${{ env.DB_PASSWORD }}
DB_NAME=${{ env.DB_NAME }}
DB_HOST=${{ env.DB_HOST }}
DB_PORT=${{ env.DB_PORT }}
REDIS_HOST=${{ env.REDIS_HOST }}
REDIS_PORT=${{ env.REDIS_PORT }}
EOF
- name: Install dependencies in Docker container
run: |
docker-compose exec backend poetry install