Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxiaoying committed May 9, 2024
1 parent 02bdda2 commit 68f4126
Showing 1 changed file with 37 additions and 31 deletions.
68 changes: 37 additions & 31 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,33 +139,33 @@ jobs:
matrix:
# python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.12"]
services:
# Label used to access the service container
postgres:
# Docker Hub image
image: postgres
env:
POSTGRES_PASSWORD: postgres
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
# mysql
mysql:
image: ghcr.io/wangxiaoying/mysql:latest
env:
MYSQL_DATABASE: mysql
MYSQL_ROOT_PASSWORD: mysql
LANG: C.UTF-8
ports:
- 3306:3306
options: >-
--health-cmd "mysqladmin ping"
--health-interval 10s
--health-timeout 10s
--health-retries 5
# services:
# # Label used to access the service container
# postgres:
# # Docker Hub image
# image: postgres
# env:
# POSTGRES_PASSWORD: postgres
# # Set health checks to wait until postgres has started
# options: >-
# --health-cmd pg_isready
# --health-interval 10s
# --health-timeout 5s
# --health-retries 5
# # mysql
# mysql:
# image: ghcr.io/wangxiaoying/mysql:latest
# env:
# MYSQL_DATABASE: mysql
# MYSQL_ROOT_PASSWORD: mysql
# LANG: C.UTF-8
# ports:
# - 3306:3306
# options: >-
# --health-cmd "mysqladmin ping"
# --health-interval 10s
# --health-timeout 10s
# --health-retries 5

steps:
- uses: actions/checkout@v4
Expand All @@ -177,8 +177,13 @@ jobs:
run: |
ln -s `which python` /usr/bin/python
ln -s `which pip` /usr/bin/pip
- uses: abatilo/actions-poetry@v2
- run: poetry --version
- name: install poetry
run: |
pip install poetry
poetry --version
- uses: extractions/setup-just@v2

- name: Install tools
run: |
Expand All @@ -187,6 +192,9 @@ jobs:
env:
DEBIAN_FRONTEND: noninteractive

- name: Install python dependencies
run: just bootstrap-python

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
Expand All @@ -209,8 +217,6 @@ jobs:
# target/
# key: ${{ runner.os }}-cargo-python-${{ matrix.python-version }}-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/Cargo.lock') }}

- uses: extractions/setup-just@v2

- name: Seed the database
run: just seed-db
env:
Expand Down

0 comments on commit 68f4126

Please sign in to comment.