Skip to content

Commit

Permalink
test source and doc build
Browse files Browse the repository at this point in the history
  • Loading branch information
jcapriot committed Oct 11, 2024
1 parent ae5f7a4 commit 8b59cc5
Showing 1 changed file with 26 additions and 24 deletions.
50 changes: 26 additions & 24 deletions .github/workflows/python-package-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,56 +79,58 @@ jobs:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

distribute:
name: Distributing from 3.8
needs: build-and-test
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
name: Distributing from ${{ env.PYTHON_VERSION }}
# needs: build-and-test
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
env:
PYTHON_VERSION: 3.11

steps:
- uses: actions/checkout@v4
- name: Setup Conda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
activate-environment: dev
python-version: 3.8
channels: conda-forge
python-version: ${{ env.PYTHON_VERSION }}

- name: Install Env
- name: Install Base Env
run: |
conda info
conda list
conda config --show
conda install --quiet --yes -c conda-forge pip numpy scipy pydiso
pip install -r requirements_docs.txt
conda install --quiet --yes pip numpy scipy
- name: Install Our Package
run: |
pip install -v -e .
pip install -v -e .[docs]
- name: Generate Source Distribution
run: |
python setup.py sdist
pip install build
python -m build --sdist .
- name: Build Documentation
run: |
cd docs
make html
cd ..
- name: GitHub Pages
uses: crazy-max/[email protected]
with:
build_dir: docs/_build/html
jekyll: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: pypi-publish
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
skip_existing: true
# - name: GitHub Pages
# uses: crazy-max/[email protected]
# with:
# build_dir: docs/_build/html
# jekyll: false
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#
# - name: pypi-publish
# uses: pypa/[email protected]
# with:
# user: __token__
# password: ${{ secrets.PYPI_API_TOKEN }}
# skip_existing: true

0 comments on commit 8b59cc5

Please sign in to comment.