Skip to content

Commit

Permalink
Merge pull request #192 from ocefpaf/update_gha
Browse files Browse the repository at this point in the history
update GHA
  • Loading branch information
ocefpaf committed Sep 19, 2022
2 parents 2d5bb80 + 161c426 commit ef02c8a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy-docs.yml
Expand Up @@ -10,12 +10,12 @@ jobs:

steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Mamba
uses: mamba-org/provision-with-micromamba@main
uses: mamba-org/provision-with-micromamba@v13
with:
environment-file: false

Expand All @@ -42,7 +42,7 @@ jobs:
popd
- name: Deploy
uses: peaceiris/actions-gh-pages@v3.6.1
uses: peaceiris/actions-gh-pages@v3.8.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html
15 changes: 10 additions & 5 deletions .github/workflows/publish.yml → .github/workflows/pypi.yml
@@ -1,15 +1,20 @@
name: Publish to PyPI

on: ["push", "pull_request"]
on:
pull_request:

push:
tags:
- "v*"

jobs:
packages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: 3.x

Expand Down Expand Up @@ -39,8 +44,8 @@ jobs:
shell: bash

- name: Publish a Python distribution to PyPI
if: ${{ github.event_name == 'release' }}
uses: pypa/gh-action-pypi-publish@master
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
uses: pypa/gh-action-pypi-publish@v1.5.1
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Expand Up @@ -10,15 +10,15 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10"]
os: [windows-latest, ubuntu-latest, macos-latest]
fail-fast: false

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup
uses: mamba-org/provision-with-micromamba@main
uses: mamba-org/provision-with-micromamba@v13
with:
environment-file: false

Expand Down

0 comments on commit ef02c8a

Please sign in to comment.