Skip to content

Commit

Permalink
still trying to fix the workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderBarbie committed Sep 1, 2024
1 parent 9b8af64 commit 27c94da
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 41 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/pr-arm32v7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
path: ${{ github.sha }}

- name: build core container
working-directory: ./PiCar-X
Expand All @@ -29,8 +27,6 @@ jobs:
needs: [build]
steps:
- uses: actions/checkout@v4
with:
path: ${{ github.sha }}

- name: Run pytest in Docker container
working-directory: ./PiCar-X
Expand All @@ -42,8 +38,6 @@ jobs:
needs: [unit-tests]
steps:
- uses: actions/checkout@v4
with:
path: ${{ github.sha }}

- name: Integration Test dcmotor
working-directory: ./PiCar-X
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/pr-arm64v8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
path: ${{ github.sha }}

- name: build core container
working-directory: ./PiCar-X
Expand All @@ -29,9 +27,7 @@ jobs:
needs: [build]
steps:
- uses: actions/checkout@v4
with:
path: ${{ github.sha }}


- name: Run pytest in Docker container
working-directory: ./PiCar-X
run: |
Expand All @@ -42,8 +38,6 @@ jobs:
needs: [unit-tests]
steps:
- uses: actions/checkout@v4
with:
path: ${{ github.sha }}

- name: Integration Test dcmotor
working-directory: ./PiCar-X
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/pr-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v4
with:
path: ${{ github.sha }}

- name: build core container
working-directory: ./PiCar-X
run: |
Expand All @@ -29,8 +29,6 @@ jobs:
needs: [build]
steps:
- uses: actions/checkout@v4
with:
path: ${{ github.sha }}

- name: Run pytest in Docker container
working-directory: ./PiCar-X
Expand All @@ -42,8 +40,6 @@ jobs:
needs: [unit-tests]
steps:
- uses: actions/checkout@v4
with:
path: ${{ github.sha }}

- name: Integration Test dcmotor
working-directory: ./PiCar-X
Expand All @@ -60,4 +56,4 @@ jobs:
if: success() || failure()
working-directory: ./PiCar-X
run: |
docker compose -f docker-compose-dtp-headless-gazebo.yml down
TAG=${{ github.sha }} docker compose -f docker-compose-dtp-headless-gazebo.yml down
8 changes: 0 additions & 8 deletions .github/workflows/push-arm32v7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
path: ${{ github.sha }}

- name: build core container
working-directory: ./PiCar-X
Expand All @@ -29,8 +27,6 @@ jobs:
needs: [build]
steps:
- uses: actions/checkout@v4
with:
path: ${{ github.sha }}

- name: Run pytest in Docker container
working-directory: ./PiCar-X
Expand All @@ -42,8 +38,6 @@ jobs:
needs: [unit-tests]
steps:
- uses: actions/checkout@v4
with:
path: ${{ github.sha }}

- name: Integration Test dcmotor
working-directory: ./PiCar-X
Expand All @@ -55,8 +49,6 @@ jobs:
needs: [integration-tests]
steps:
- uses: actions/checkout@v4
with:
path: ${{ github.sha }}

- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/push-arm64v8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
path: ${{ github.sha }}

- name: build core container
working-directory: ./PiCar-X
Expand All @@ -29,8 +27,6 @@ jobs:
needs: [build]
steps:
- uses: actions/checkout@v4
with:
path: ${{ github.sha }}

- name: Run pytest in Docker container
working-directory: ./PiCar-X
Expand All @@ -42,8 +38,6 @@ jobs:
needs: [unit-tests]
steps:
- uses: actions/checkout@v4
with:
path: ${{ github.sha }}

- name: Integration Test dcmotor
working-directory: ./PiCar-X
Expand All @@ -55,8 +49,6 @@ jobs:
needs: [integration-tests]
steps:
- uses: actions/checkout@v4
with:
path: ${{ github.sha }}

- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/push-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
- name: build core container
working-directory: ./PiCar-X
run: |
TAG=${{ github.sha }} docker compose -f docker-compose-core.yml build --no-cache
TAG=latest docker compose -f docker-compose-core.yml build --no-cache
- name: build dtp containers without gazebo
working-directory: ./PiCar-X
run: |
TAG=${{ github.sha }} docker compose -f docker-compose-dtp-headless-gazebo.yml build --no-cache
TAG=latest docker compose -f docker-compose-dtp-headless-gazebo.yml build --no-cache
unit-tests:
runs-on: [self-hosted, Linux, X64]
Expand All @@ -31,7 +31,7 @@ jobs:
- name: Run pytest in Docker container
working-directory: ./PiCar-X
run: |
docker run --rm --name picarx-unittest ghcr.io/cau-se/arches-picar-x/picarx:${{ github.sha }} pytest ./src/core/picarx/tests
docker run --rm --name picarx-unittest ghcr.io/cau-se/arches-picar-x/picarx:latest pytest ./src/core/picarx/tests
integration-tests:
runs-on: [self-hosted, Linux, X64]
Expand All @@ -42,7 +42,7 @@ jobs:
- name: Integration Test dcmotor
working-directory: ./PiCar-X
run: |
docker run --rm --name dcmotor-integration-test -v /sys/class/gpio:/sys/class/gpio -v /dev/i2c-0:/dev/i2c-0 --privileged ghcr.io/cau-se/arches-picar-x/drivers/dcmotor:${{ github.sha }} rostest picarx_dcmotor_driver integration_tests.test i2c_port:=/dev/i2c-0
docker run --rm --name dcmotor-integration-test -v /sys/class/gpio:/sys/class/gpio -v /dev/i2c-0:/dev/i2c-0 --privileged ghcr.io/cau-se/arches-picar-x/drivers/dcmotor:latest rostest picarx_dcmotor_driver integration_tests.test i2c_port:=/dev/i2c-0
- name: Speed tests using Gazebo headless
working-directory: ./PiCar-X
Expand All @@ -54,7 +54,7 @@ jobs:
if: success() || failure()
working-directory: ./PiCar-X
run: |
docker compose -f docker-compose-dtp-headless-gazebo.yml down
TAG=latest docker compose -f docker-compose-dtp-headless-gazebo.yml down
release:
runs-on: [self-hosted, Linux, ARM]
Expand All @@ -72,4 +72,4 @@ jobs:
- name: Push to ghcr.io
working-directory: ./PiCar-X
run: |
TAG=latest docker compose -f docker-compose-dtp-no-gazebo.yml push
TAG=latest docker compose -f docker-compose-dtp-headless-gazebo.yml push

0 comments on commit 27c94da

Please sign in to comment.