-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.26 KB
/
general_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: general-tests
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on: [pull_request]
jobs:
general-tests-job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
github-server-url: https://github.com/dogusyuksel/HM10-HM11_Driver.git
lfs: true
- name: Download Repos
run: |
./setup_environment.sh
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Project Docker
uses: docker/build-push-action@v5
with:
load: true
tags: |
${{ secrets.DOCKER_REPO }}:master
context: .
file: docker/Dockerfile
pull: true
push: false
provenance: false
- name: pytest
run: |
./docker/run_docker.sh ${{ secrets.DOCKER_REPO }}:master "cd /workspace && pytest"
- name: flake8
run: |
echo "'isort .' can be executed if needed"
./docker/run_docker.sh ${{ secrets.DOCKER_REPO }}:master "cd /workspace && flake8 --max-line-length=120"