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