Skip to content

Commit

Permalink
Update python-package-conda.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rcervinoucm authored Jun 6, 2024
1 parent 878ccab commit 87a3784
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions .github/workflows/python-package-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,39 +36,3 @@ jobs:
run: |
conda install pytest
pytest
#- name: Publish a Python distribution to PyPI
# uses: ortega2247/pypi-upload-action@master
#with:
# user: __token__
#password: ${{ secrets.PYPI_TOKEN }}

pypi-publish:
name: Publish release to PyPI
environment:
name: pypi
url: https://pypi.org/p/ctlearn
permissions:
id-token: write
strategy:
matrix:
os: [ubuntu-22.04]
pyv: [3.9, '3.10', 3.11, 3.12]
max-parallel: 5
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.pyv }}
run: |
conda install -y python=${{ matrix.pyv }}
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
conda env update --file environment.yml --name base
- name: Build package
run: |
python setup.py sdist bdist_wheel # Could also be python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 87a3784

Please sign in to comment.