Skip to content

Commit

Permalink
Use resuable workflows for everything
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkjellid committed Dec 12, 2023
1 parent e3b8400 commit e099d0a
Showing 1 changed file with 3 additions and 51 deletions.
54 changes: 3 additions & 51 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,47 +54,6 @@ jobs:

python-tests:
name: python tests
runs-on: ubuntu-20.04
services:
minio:
image: bitnami/minio:latest
env:
# Make sure these variables is the same as the defaults in settings.py
MINIO_ROOT_USER: nest # AWS_ACCESS_KEY_ID
MINIO_ROOT_PASSWORD: nest # AWS_SECRET_ACCESS_KEY
MINIO_DEFAULT_BUCKETS: dev:download # AWS_S3_BUCKET_NAME
CONSOLE_SECURE_TLS_REDIRECT: off
ports:
- '9000:9000'
- '9001:9001'
volumes:
- 'minio_data:/data'
postgres:
image: postgres:14
ports:
- 5432/tcp
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
env:
POSTGRES_DB: nest
POSTGRES_USER: nest
POSTGRES_PASSWORD: nest
steps:
- name: Checkout project
uses: actions/checkout@v3
- name: Setup project
uses: ./.github/actions/setup-python
- name: Run tests
run: poetry run pytest
env:
DATABASE_URL: postgresql://nest:nest@localhost:${{ job.services.postgres.ports[5432] }}/nest
# PostgreSQL's configuration, used by psql
PGHOST: localhost
PGUSER: nest
PGPASSWORD: nest
PGDATABASE: nest
PGPORT: ${{ job.services.postgres.ports[5432] }}

python-tests2: #
uses: danielkjellid/github-actions/.github/workflows/python.yaml@python-tests
with:
cmd: poetry run pytest
Expand All @@ -107,16 +66,9 @@ jobs:

frontend-tests:
name: frontend tests
runs-on: ubuntu-20.04
strategy:
fail-fast: false
steps:
- name: Checkout project
uses: actions/checkout@v3
- name: Setup project
uses: ./.github/actions/setup-node
- name: Run tests
run: npm test
uses: danielkjellid/github-actions/.github/workflows/node.yaml@main
with:
cmd: npm test

python-missing-init:
name: missing __init__.py files
Expand Down

0 comments on commit e099d0a

Please sign in to comment.