ignore version changes #105
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: tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
pytest: | |
name: Run linting and tests | |
runs-on: ubuntu-latest | |
env: | |
PDM_BUILD_SCM_VERSION: "1.0.0" | |
services: | |
timescaledb: | |
image: timescale/timescaledb:latest-pg15 | |
env: | |
POSTGRES_PASSWORD: timescaledb | |
POSTGRES_USER: timescaledb | |
POSTGRES_DB: timescaledb | |
ports: | |
- 5432:5432 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pdm-project/setup-pdm@v4 | |
with: | |
cache: true | |
python-version: '3.11' | |
- uses: pre-commit/action@v3.0.1 | |
with: | |
extra_args: --all-files --show-diff-on-failure | |
- name: Install dependencies | |
run: pdm install -x -dG test | |
- name: Run tests | |
run: pdm run pytest --cov=dbt | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v4 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
with: | |
files: ./coverage.xml |