Feature/access for rdb resource #2205
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Install Package, Lint Code & Run Tests on Mac | |
on: | |
push: | |
branches: | |
- "*" | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
install-lint-test-on-mac: | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
python-version: # github.com/actions/python-versions/releases | |
- 3.12 | |
# - 3.13 | |
services: | |
mysql: | |
image: mysql:9.1.0 | |
env: | |
MYSQL_USER: root | |
MYSQL_PASSWORD: password | |
MYSQL_DATABASE: test | |
ports: | |
- 3306:3306 | |
options: >- | |
--health-cmd="mysqladmin ping --silent" | |
--health-interval=10s | |
--health-timeout=5s | |
--health-retries=3 | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 # github.com/actions/checkout | |
- name: Set Up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 # github.com/actions/setup-python | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Install Poetry | |
run: make get-poetry | |
- name: Install Package & Dependencies | |
run: make install | |
- name: Wait for MySQL to be ready | |
run: | | |
until mysqladmin ping -h 127.0.0.1 --silent; do | |
echo "Waiting for MySQL..." | |
sleep 5 | |
done | |
- name: Lint Code | |
run: make lint | |
- name: Run Tests | |
run: make test | |
env: | |
LEPTON_API_KEY: ${{ secrets.LEPTON_API_KEY }} | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
MYSQL_USER: root | |
MYSQL_PASSWORD: password | |
MYSQL_DATABASE: test |