Update actions

This commit is contained in:
Andras Schmelczer 2022-07-08 11:20:20 +02:00
parent b995da5d80
commit 7e2be76e4a
No known key found for this signature in database
GPG key ID: 0EA1BC97D0AB076E
3 changed files with 11 additions and 9 deletions

View file

@ -1,9 +1,11 @@
name: Publish on PyPI name: Publish documentation
on: on:
workflow_dispatch:
push: push:
tags: branches:
- '*' - main
- dev
jobs: jobs:
publish: publish:
@ -12,7 +14,7 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Set up Python 3.9 - name: Set up Python 3.9
uses: actions/setup-python@v2 uses: actions/setup-python@v4
with: with:
python-version: 3.9 python-version: 3.9

View file

@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Set up Python 3.9 - name: Set up Python 3.9
uses: actions/setup-python@v2 uses: actions/setup-python@v4
with: with:
python-version: 3.9 python-version: 3.9

View file

@ -23,7 +23,7 @@ jobs:
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Setup Python ${{ matrix.python-version }} - name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2 uses: actions/setup-python@v4
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
@ -40,7 +40,7 @@ jobs:
- name: Upload results - name: Upload results
if: always() if: always()
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: Unit test coverage (Python ${{ matrix.python-version }} - ${{ matrix.operating-system }}) name: Unit test coverage (Python ${{ matrix.python-version }} - ${{ matrix.operating-system }})
path: "*.xml" path: "*.xml"
@ -62,7 +62,7 @@ jobs:
rm -rf build rm -rf build
- name: Download test results - name: Download test results
uses: actions/download-artifact@v2 uses: actions/download-artifact@v3
with: with:
path: artifacts path: artifacts
@ -86,7 +86,7 @@ jobs:
if: always() if: always()
steps: steps:
- name: Download artifacts - name: Download artifacts
uses: actions/download-artifact@v2 uses: actions/download-artifact@v3
with: with:
path: artifacts path: artifacts