diff --git a/.github/workflows/build_docs.yml b/.github/workflows/build_docs.yml index 89f7a924..530724ac 100644 --- a/.github/workflows/build_docs.yml +++ b/.github/workflows/build_docs.yml @@ -28,16 +28,19 @@ steps: - name: Checkout repo uses: actions/checkout@v3 - + - name: Setup micromamba - uses: mamba-org/provision-with-micromamba@main + uses: mamba-org/setup-micromamba@v1 with: environment-file: ${{ matrix.environment-file }} micromamba-version: 'latest' - + + - name: Install esda + run: pip install . + - name: Make Docs run: cd docs; make html - + - name: Commit Docs run: | git clone https://github.com/ammaraskar/sphinx-action-test.git --branch gh-pages --single-branch gh-pages @@ -49,7 +52,7 @@ git commit -m "Update documentation" -a || true # The above command will fail if no changes were present, # so we ignore the return code. - + - name: push to gh-pages uses: ad-m/github-push-action@master with: diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index a768f0cb..ff599e4f 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -55,11 +55,10 @@ - name: checkout repo uses: actions/checkout@v3 - name: setup micromamba - uses: mamba-org/provision-with-micromamba@main + uses: mamba-org/setup-micromamba@v1 with: micromamba-version: 'latest' environment-file: ${{ matrix.environment-file }} - channel-priority: 'flexible' - name: install bleeding edge libpysal (Ubuntu / Python 3.10) shell: bash -l {0} diff --git a/.github/workflows/upload_package.yml b/.github/workflows/upload_package.yml index e0fcc47f..82331053 100644 --- a/.github/workflows/upload_package.yml +++ b/.github/workflows/upload_package.yml @@ -21,13 +21,13 @@ jobs: uses: actions/setup-python@v4 with: python-version: '3.x' - - - name: Install dependencies + + - name: Build source and wheel distributions run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine jupyter urllib3 pandas pyyaml - python setup.py sdist bdist_wheel - + python -m pip install --upgrade build twine + python -m build + twine check --strict dist/* + - name: Create Release Notes uses: actions/github-script@v6 with: @@ -37,7 +37,7 @@ jobs: tag_name: "${{ github.ref }}", generate_release_notes: true }); - + - name: Publish distribution 📦 to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: