chore: fix dependency groups #30
Workflow file for this run
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: ci-test-snowflake | |
on: | |
workflow_dispatch: | |
pull_request_target: | |
types: | |
- labeled | |
permissions: | |
contents: read | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
if: github.event_name == 'workflow_dispatch' || github.event.label.name == 'ci-test-snowflake' | |
strategy: | |
matrix: | |
target: ["x86_64"] | |
python-version: ["3.11"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: extractions/setup-just@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: download test data | |
run: just download-data | |
- name: Rust latest | |
run: rustup update | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
enable-cache: true | |
- name: Install the project | |
run: uv sync --extra snowflake --group dev --group test --no-install-project | |
working-directory: ${{ github.workspace }} | |
- name: maturin develop | |
run: uv run maturin develop | |
working-directory: ${{ github.workspace }} | |
- name: start services | |
run: docker compose up --build --wait | |
- name: pytest | |
run: uv run pytest --import-mode=importlib python/letsql/backends/snowflake -v --cov --cov-report=xml | |
working-directory: ${{ github.workspace }} | |
env: | |
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_GH_USER_PASSWORD }} | |
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_GH_USER_NAME }} | |
SNOWFLAKE_WAREHOUSE: ${{ secrets.SNOWFLAKE_GH_WAREHOUSE }} | |
SNOWFLAKE_ROLE: ${{ secrets.SNOWFLAKE_GH_ROLE }} | |
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_GH_ACCOUNT }} | |
- name: Upload coverage reports to Codecov | |
if: success() | |
continue-on-error: true | |
uses: codecov/[email protected] | |
with: | |
flags: snowflake | |
token: ${{ secrets.CODECOV_TOKEN }} | |