-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (25 loc) · 801 Bytes
/
unit_tests.yml
File metadata and controls
32 lines (25 loc) · 801 Bytes
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
name: UnitTests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
name: Run unit tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build python code execution environment (DOCKER BUILD)
run: docker build -t python3 -f ${{ github.workspace }}/dockerfiles/python3.Dockerfile .
- name: Install testing dependencies
run: |
yarn install
- name: Run unit tests
run: npm test
# - name: Build Custom Docker image
# run: docker build -t test_env .
# - name: Run unit tests inside the custom docker container
# run: docker run -dit -v "/var/run/docker.sock:/var/run/docker.sock:rw" test_env
# # run: docker run test_env