Skip to content

Commit

Permalink
Create tests.yml
Browse files Browse the repository at this point in the history
Run docker-compose and tests in training_api container.
  • Loading branch information
faymanns authored Oct 24, 2023
1 parent 278ca25 commit df738f5
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Docker compose tests

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: adambirds/[email protected]
with:
compose-file: "./docker-compose.yml"
test-container: "training_api"
test-command: "python3 -m pytest"

0 comments on commit df738f5

Please sign in to comment.