Skip to content

Commit cb21a01

Browse files
authored
GHA: update release actions (#265)
* GHA: update release actions * update mamba action in testing as well
1 parent 1880f81 commit cb21a01

File tree

3 files changed

+16
-14
lines changed

3 files changed

+16
-14
lines changed

.github/workflows/build_docs.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,19 @@
2828
steps:
2929
- name: Checkout repo
3030
uses: actions/checkout@v3
31-
31+
3232
- name: Setup micromamba
33-
uses: mamba-org/provision-with-micromamba@main
33+
uses: mamba-org/setup-micromamba@v1
3434
with:
3535
environment-file: ${{ matrix.environment-file }}
3636
micromamba-version: 'latest'
37-
37+
38+
- name: Install esda
39+
run: pip install .
40+
3841
- name: Make Docs
3942
run: cd docs; make html
40-
43+
4144
- name: Commit Docs
4245
run: |
4346
git clone https://github.com/ammaraskar/sphinx-action-test.git --branch gh-pages --single-branch gh-pages
@@ -49,7 +52,7 @@
4952
git commit -m "Update documentation" -a || true
5053
# The above command will fail if no changes were present,
5154
# so we ignore the return code.
52-
55+
5356
- name: push to gh-pages
5457
uses: ad-m/github-push-action@master
5558
with:

.github/workflows/testing.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,10 @@
5555
- name: checkout repo
5656
uses: actions/checkout@v3
5757
- name: setup micromamba
58-
uses: mamba-org/provision-with-micromamba@main
58+
uses: mamba-org/setup-micromamba@v1
5959
with:
6060
micromamba-version: 'latest'
6161
environment-file: ${{ matrix.environment-file }}
62-
channel-priority: 'flexible'
6362

6463
- name: install bleeding edge libpysal (Ubuntu / Python 3.10)
6564
shell: bash -l {0}

.github/workflows/upload_package.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ jobs:
2121
uses: actions/setup-python@v4
2222
with:
2323
python-version: '3.x'
24-
25-
- name: Install dependencies
24+
25+
- name: Build source and wheel distributions
2626
run: |
27-
python -m pip install --upgrade pip
28-
pip install setuptools wheel twine jupyter urllib3 pandas pyyaml
29-
python setup.py sdist bdist_wheel
30-
27+
python -m pip install --upgrade build twine
28+
python -m build
29+
twine check --strict dist/*
30+
3131
- name: Create Release Notes
3232
uses: actions/github-script@v6
3333
with:
@@ -37,7 +37,7 @@ jobs:
3737
tag_name: "${{ github.ref }}",
3838
generate_release_notes: true
3939
});
40-
40+
4141
- name: Publish distribution 📦 to PyPI
4242
uses: pypa/gh-action-pypi-publish@release/v1
4343
with:

0 commit comments

Comments
 (0)