-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (42 loc) · 1.56 KB
/
Copy pathci.yml
File metadata and controls
54 lines (42 loc) · 1.56 KB
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
51
52
53
54
name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
test:
runs-on: [ self-hosted, ubuntu-latest ]
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Set up Python 3.11
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: "3.11"
- name: Cache pre-commit hooks
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: ~/.cache/pre-commit
key: ${{ runner.os }}-precommit-${{ hashFiles('.pre-commit-config.yaml') }}
- name: lint
run: |
chmod +x scripts/lint.sh
scripts/lint.sh
- name: build docker image
working-directory: ${{ github.workspace }}
run: |
git clone --depth=1 "https://$TRAVIS_ROBOT_KEY@github.com/mdsol/engineering-helper-scripts.git" ../ehs
eval $(ssh-agent)
PACKAGE_GROUPS=dev,test ../ehs/docker/build_container.sh .12factor/Dockerfile --build-arg PACKAGE_GROUPS
env:
TRAVIS_ROBOT_KEY: ${{ secrets.TRAVIS_ROBOT_KEY }}
ARTIFACTORY_TOKEN: ${{ secrets.ARTIFACTORY_TOKEN }}
ARTIFACTORY_USER: ${{ vars.ARTIFACTORY_USER }}
# - name: test (unit & integration)
# run: docker run dataconnect-library-python "scripts/test.sh"
# - name: benchmarks
# run: docker run dataconnect-library-python "scripts/benchmark.sh"
# - name: typecheck
# run: docker run dataconnect-library-python "scripts/typecheck.sh"