Skip to content

Commit

Permalink
🚧 Update gh workflow with another config to build the image
Browse files Browse the repository at this point in the history
  • Loading branch information
yessica-rd committed Sep 29, 2023
1 parent f98c499 commit 3a8ec1e
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/build-and-run-pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,19 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/checkout@v2

- name: Build Docker image
run: |
docker build -t claasp-lib ./docker/
# working-directory: /home/sage/tii-claasp # Specify the path to your app's directory.

- name: Run Tests in Docker
run: |
docker run claasp-lib sh -c make remote-pytest
working-directory: $PWD:/home/sage/tii-claasp # Specify the path to your app's directory.
- name: Build image
run: docker build -t claasp ./docker/

test:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2

- name: Run tests
run: docker run -it claasp make remote-pytest /home/sage/tii-claasp

# jobs:
# build-and-run-pytest:
Expand Down

0 comments on commit 3a8ec1e

Please sign in to comment.