test all sources (linux, duckdb) #232
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: test all sources (linux, duckdb) | |
on: | |
schedule: | |
- cron: 0 0 * * * | |
env: | |
ALL_DESTINATIONS: '["duckdb"]' | |
DLT_SECRETS_TOML: ${{ secrets.DLT_SECRETS_TOML }} | |
RUNTIME__LOG_LEVEL: ERROR | |
jobs: | |
run_loader: | |
name: test all sources (linux, duckdb) | |
defaults: | |
run: | |
shell: bash | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: Check out | |
uses: actions/checkout@master | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.8.x" | |
- name: Install Poetry | |
uses: snok/[email protected] | |
with: | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
installer-parallel: true | |
- name: Load cached venv | |
id: cached-poetry-dependencies | |
uses: actions/cache@v2 | |
with: | |
# path: ${{ steps.pip-cache.outputs.dir }} | |
path: .venv | |
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}-destinations | |
- name: Install dependencies | |
# if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | |
run: poetry install --no-interaction --all-extras | |
- name: create secrets.toml | |
run: pwd && echo "$DLT_SECRETS_TOML" > sources/.dlt/secrets.toml | |
- run: poetry run pytest tests | |
name: Run tests on Linux |