Test publish (testpypi) #15
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: Test publish (testpypi) | |
on: | |
workflow_dispatch: | |
inputs: | |
dbt_artifacts_parser_version: | |
description: "dbt-artifacts-parser version" | |
required: true | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.9" | |
- name: Install uv | |
run: | | |
pip install -r requirements.setup.txt | |
- name: Test publish | |
env: | |
UV_PUBLISH_TOKEN: "${{ secrets.TESTPYPI_API_TOKEN }}" | |
run: | | |
bash dev/publish.sh testpypi | |
test-published-package: | |
needs: | |
- publish | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ] | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "${{ matrix.python-version }}" | |
- name: Install packages | |
run: | | |
python3 -m pip install -U pip==23.1.0 | |
python3 -m pip install \ | |
--index-url https://test.pypi.org/simple/ \ | |
--force-reinstall \ | |
--use-feature=fast-deps \ | |
-U dbt-artifacts-parser=="${{ github.event.inputs.dbt_artifacts_parser_version }}" | |
- name: Test pacakge | |
run: | | |
python -c 'import dbt_artifacts_parser; print(dbt_artifacts_parser.__version__)' |