Skip to content

Use project and change database materialization #27

Use project and change database materialization

Use project and change database materialization #27

Workflow file for this run

name: Run Tests & Deploy
on:
pull_request:
branches: [main, staging]
paths-ignore:
- 'README.md'
jobs:
tests:
runs-on: ubuntu-latest
if: github.ref_type == 'branch'
steps:
- uses: actions/checkout@v3
- name: Install
run: |
pip install -r dev_requirements.txt
shell: bash
#TODO: ADD TESTS
deploy_to_pypi:
runs-on: ubuntu-latest
needs: test

Check failure on line 21 in .github/workflows/test_release.yml

View workflow run for this annotation

GitHub Actions / Run Tests & Deploy

Invalid workflow file

The workflow is not valid. .github/workflows/test_release.yml (Line: 21, Col: 12): Job 'deploy_to_pypi' depends on unknown job 'test'.
if: github.ref == 'refs/heads/main' && github.actor != 'mindsdbadmin'
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.7'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist
twine upload dist/*
- name: Install latest version from pypi to see that all is working
run: |
sleep 90
pip install dbt-mindsdb