Skip to content

Commit

Permalink
test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshod5 committed May 15, 2024
1 parent acde797 commit 4b9ac98
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: CI
on: [ push, pull_request ]

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -18,17 +19,23 @@ jobs:
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and run with Docker Compose
run: |
docker-compose -f dev/docker/docker-compose.yml up --build
docker-compose --env-file dev/docker/.env.dev -f dev/docker/docker-compose.yml up --build
- name: Install reqs
- name: Run tests
run: |
pip install -r requirements.txt
pytest test_mock_db.py --data-path=/Users/pstanis/Documents/work_projects/fair-mast/data/metadata/mini
- name: Run PyTest
- name: Shutdown
run: |
pytest tests/test_mock_db.py --data-path=data/metadata/mini
docker-compose down
Expand Down

0 comments on commit 4b9ac98

Please sign in to comment.