Skip to content

Commit

Permalink
fixup! feat: update client factory methods
Browse files Browse the repository at this point in the history
  • Loading branch information
mtth committed Jun 18, 2024
1 parent eb03ec5 commit 6763e74
Showing 1 changed file with 6 additions and 37 deletions.
43 changes: 6 additions & 37 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,49 +10,14 @@ jobs:
name: Test
timeout-minutes: 4
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_DB: default_db
POSTGRES_USER: default_user
POSTGRES_PASSWORD: default_pass
options: >-
--health-cmd pg_isready
--health-interval 5s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
server:
image: opvious/api-server
env:
DB_URL: postgres://default_user:default_pass@postgres/default_db
OPVIOUS_API_IMAGE_EULA: accepted
REDIS_URL: redis://redis
STATIC_TOKENS: [email protected]=testing
ports:
- 8080:8080
env:
OPVIOUS_ENDPOINT: http://localhost:8080
OPVIOUS_TOKEN: static:testing
steps:
- name: Check out
uses: actions/checkout@v2
- name: Setup Python
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Setup poetry
- name: Set up poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: '1.2.2'
Expand All @@ -65,6 +30,10 @@ jobs:
poetry run black . --check
poetry run flake8
poetry run mypy .
- name: Set up API server
uses: opvious/api-server-action@main
with:
license-key: ${{ secrets.OPVIOUS_LICENSE_KEY }}
- name: Register specifications
run: ./scripts/specifications.sh register
- name: Test
Expand Down

0 comments on commit 6763e74

Please sign in to comment.