File: python-dlt-ci.yaml

package info (click to toggle)
python-dlt 2.18.10.1-3.1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 484 kB
  • sloc: python: 3,454; makefile: 56
file content (33 lines) | stat: -rw-r--r-- 1,063 bytes parent folder | download | duplicates (3)
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
name: python-dlt-ci-actions

on: [push, pull_request]

jobs:
  run-test-for-python-dlt:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        LIBDLT_VERSION:
          - "v2.18.8"
    steps:
      - uses: actions/checkout@v2
      - name: Build python-dlt unit test docker image
        id: docker_build
        uses: docker/build-push-action@v2
        with:
          push: false
          build-args: |
             LIBDLT_VERSION=${{ matrix.LIBDLT_VERSION }}
          tags: python-dlt/python-dlt-unittest:${{ matrix.LIBDLT_VERSION }}
      - name: lint check for the code base
        uses: addnab/docker-run-action@v3
        with:
          image: python-dlt/python-dlt-unittest:${{ matrix.LIBDLT_VERSION }}
          options: -v ${{ github.workspace }}:/pydlt -w /pydlt
          run: tox -e black,ruff
      - name: Run unit test
        uses: addnab/docker-run-action@v3
        with:
          image: python-dlt/python-dlt-unittest:${{ matrix.LIBDLT_VERSION }}
          options: -v ${{ github.workspace }}:/pydlt -w /pydlt
          run: tox