Merge pull request #118 from dlt-hub/fix/remove_print_statements_upda… #312
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: run tests | |
on: | |
push: | |
branches: | |
- master | |
- devel | |
pull_request: | |
branches: | |
- master | |
- devel | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
run_tests: | |
name: test | |
strategy: | |
fail-fast: true | |
matrix: | |
os: | |
- ubuntu-latest | |
python-version: ["3.9.x", "3.10.x", "3.11.x"] | |
defaults: | |
run: | |
shell: bash | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check out | |
uses: actions/checkout@master | |
with: | |
submodules: 'true' | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
installer-parallel: true | |
- name: Load cached venv | |
id: cached-poetry-dependencies | |
uses: actions/cache@v3 | |
with: | |
path: .venv | |
key: venv2-${{ matrix.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }} | |
- name: Install dependencies | |
run: make dev | |
- name: Run fast tests | |
run: make test-fast | |
- name: Run slow tests | |
run: make test-slow | |
# TODO: the below does one full e2e test, make this a | |
# bit more generic and run a couple of these | |
- name: Create example pipeline | |
run: make create-e2e-pokemon-pipeline | |
- name: Run example pipeline | |
run: make run-pokemon-pipeline | |
- name: Check example pipeline result | |
run: make check-pokemon-pipeline | |
matrix_job_required_check: | |
name: lint | code & tests | |
needs: run_tests | |
runs-on: ubuntu-latest | |
if: always() | |
steps: | |
- name: Check matrix job results | |
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') | |
run: | | |
echo "One or more matrix job tests failed or were cancelled. You may need to re-run them." && exit 1 |