Skip to content

define dependencies

define dependencies #6

Workflow file for this run

name: Upload Python Package
on:
push:
branches: [ "pack-and-publish-test" ]
#release:
# types: [published]
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: testpypi
url: https://test.pypi.org/p/CausalPlayground
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
username: __token__
password: ${{ secrets.TESTPYPI }}