提交 5dd69b8e authored 作者: Michael Osthege's avatar Michael Osthege

Update GH actions as proposed by dependabot in #167, #168, #169, #170

* Bump pypa/gh-action-pypi-publish from 1.4.2 to 1.6.4 * Bump actions/cache from 1 to 3 * Bump pre-commit/action from 2.0.0 to 3.0.0 * Bump actions/setup-python from 3 to 4 * Also bumped Python version for coverage upload job
上级 ece11160
...@@ -12,7 +12,7 @@ jobs: ...@@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- uses: actions/setup-python@v3 - uses: actions/setup-python@v4
with: with:
python-version: "3.9" python-version: "3.9"
- name: Install dependencies - name: Install dependencies
...@@ -23,7 +23,7 @@ jobs: ...@@ -23,7 +23,7 @@ jobs:
run: python -m build --sdist . run: python -m build --sdist .
env: env:
BUILD_PYTENSOR_NIGHTLY: true BUILD_PYTENSOR_NIGHTLY: true
- uses: pypa/gh-action-pypi-publish@v1.4.2 - uses: pypa/gh-action-pypi-publish@v1.6.4
with: with:
user: __token__ user: __token__
password: ${{ secrets.nightly_pypi_secret }} password: ${{ secrets.nightly_pypi_secret }}
...@@ -30,7 +30,7 @@ jobs: ...@@ -30,7 +30,7 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- uses: actions/setup-python@v3 - uses: actions/setup-python@v4
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Build the sdist and the wheel - name: Build the sdist and the wheel
...@@ -72,7 +72,7 @@ jobs: ...@@ -72,7 +72,7 @@ jobs:
with: with:
name: artifact name: artifact
path: dist path: dist
- uses: pypa/gh-action-pypi-publish@master - uses: pypa/gh-action-pypi-publish@v1.6.4
with: with:
user: __token__ user: __token__
password: ${{ secrets.pypi_secret }} password: ${{ secrets.pypi_secret }}
...@@ -52,10 +52,10 @@ jobs: ...@@ -52,10 +52,10 @@ jobs:
if: ${{ needs.changes.outputs.changes == 'true' }} if: ${{ needs.changes.outputs.changes == 'true' }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: actions/setup-python@v2 - uses: actions/setup-python@v4
with: with:
python-version: '3.9' python-version: '3.9'
- uses: pre-commit/action@v2.0.0 - uses: pre-commit/action@v3.0.0
test: test:
name: "Test py${{ matrix.python-version }}: ${{ matrix.part }}" name: "Test py${{ matrix.python-version }}: ${{ matrix.part }}"
...@@ -179,7 +179,7 @@ jobs: ...@@ -179,7 +179,7 @@ jobs:
env: env:
PYTHON_VERSION: 3.9 PYTHON_VERSION: 3.9
- name: Download previous benchmark data - name: Download previous benchmark data
uses: actions/cache@v1 uses: actions/cache@v3
with: with:
path: ./cache path: ./cache
key: ${{ runner.os }}-benchmark key: ${{ runner.os }}-benchmark
...@@ -220,9 +220,9 @@ jobs: ...@@ -220,9 +220,9 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v1 uses: actions/setup-python@v4
with: with:
python-version: 3.7 python-version: "3.10"
- name: Install dependencies - name: Install dependencies
run: | run: |
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论