-
Notifications
You must be signed in to change notification settings - Fork 122
Closed
Labels
Description
We created the correct tags and set the scope to device.
The step for Tailscale runs(i dont see any confirmations that we are connected) but the step to run my tests fail with
ERROR tests/mycode/code/test_my_code.py - sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'mysqlserver.us-east-1.rds.amazonaws.com' (timed out)")
We also see the node being created on the Tailscale UI but i keep getting a timeout when I run pytest.
name: Python application
on:
push:
branches: [ "feature/github-actions" ]
pull_request:
branches: [ "feature/github-actions" ]
env:
AWS_CONFIG_FILE: .github/workflows/aws_config
DB_NAME: "mydbname"
DB_READ_SERVER: "mysqlserver.us-east-1.rds.amazonaws.com"
DB_USERNAME: "root"
DB_PASSWORD: ${{secrets.DB_PASSWORD}}
AWS_PROFILE: "dev"
API_VERSION: "v1"
FRONT_END_KEY: ${{secrets.FRONT_END_KEY}}
LOG_LEVEL: "INFO"
DB_USER_ID: 32
SENTRY_SAMPLE_RATE: 1
NUMEXPR_MAX_THREADS: "8"
LOG_LEVEL_CONSOLE: True
LOG_LEVEL_ALGORITHM: "INFO"
LOG_LEVEL_DB: "WARNING"
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Tailscale
uses: tailscale/github-action@v2
with:
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
tags: tag:cicd
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.12"
- name: Install dependencies
run: |
pip install -r requirements-dev.txt
- name: Test with pytest
env:
PYTHONPATH: ${{github.workspace}}/src
run: |
pytestReactions are currently unavailable