mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge pull request #3051 from avaris/gh-actions-update
This commit is contained in:
commit
66408d611f
3 changed files with 24 additions and 22 deletions
39
.github/workflows/main.yml
vendored
39
.github/workflows/main.yml
vendored
|
|
@ -29,13 +29,13 @@ jobs:
|
||||||
python: "3.7"
|
python: "3.7"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Setup Python ${{ matrix.config.python }}
|
- name: Setup Python ${{ matrix.config.python }}
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.config.python }}
|
python-version: ${{ matrix.config.python }}
|
||||||
- name: Set up Pip cache (Linux)
|
- name: Set up Pip cache (Linux)
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
if: startsWith(runner.os, 'Linux')
|
if: startsWith(runner.os, 'Linux')
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/pip
|
path: ~/.cache/pip
|
||||||
|
|
@ -43,7 +43,7 @@ jobs:
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pip-
|
${{ runner.os }}-pip-
|
||||||
- name: Set up Pip cache (macOS)
|
- name: Set up Pip cache (macOS)
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
if: startsWith(runner.os, 'macOS')
|
if: startsWith(runner.os, 'macOS')
|
||||||
with:
|
with:
|
||||||
path: ~/Library/Caches/pip
|
path: ~/Library/Caches/pip
|
||||||
|
|
@ -51,7 +51,7 @@ jobs:
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pip-
|
${{ runner.os }}-pip-
|
||||||
- name: Setup pip cache (Windows)
|
- name: Setup pip cache (Windows)
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
if: startsWith(runner.os, 'Windows')
|
if: startsWith(runner.os, 'Windows')
|
||||||
with:
|
with:
|
||||||
path: ~\AppData\Local\pip\Cache
|
path: ~\AppData\Local\pip\Cache
|
||||||
|
|
@ -62,7 +62,7 @@ jobs:
|
||||||
if: startsWith(runner.os, 'Linux')
|
if: startsWith(runner.os, 'Linux')
|
||||||
run: sudo locale-gen fr_FR.UTF-8 tr_TR.UTF-8
|
run: sudo locale-gen fr_FR.UTF-8 tr_TR.UTF-8
|
||||||
- name: Install pandoc
|
- name: Install pandoc
|
||||||
uses: r-lib/actions/setup-pandoc@v1
|
uses: r-lib/actions/setup-pandoc@v2
|
||||||
with:
|
with:
|
||||||
pandoc-version: "2.9.2"
|
pandoc-version: "2.9.2"
|
||||||
- name: Install tox
|
- name: Install tox
|
||||||
|
|
@ -82,13 +82,13 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: "3.7"
|
python-version: "3.9"
|
||||||
- name: Set pip cache (Linux)
|
- name: Set pip cache (Linux)
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
if: startsWith(runner.os, 'Linux')
|
if: startsWith(runner.os, 'Linux')
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/pip
|
path: ~/.cache/pip
|
||||||
|
|
@ -106,13 +106,13 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: "3.7"
|
python-version: "3.9"
|
||||||
- name: Set pip cache (Linux)
|
- name: Set pip cache (Linux)
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
if: startsWith(runner.os, 'Linux')
|
if: startsWith(runner.os, 'Linux')
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/pip
|
path: ~/.cache/pip
|
||||||
|
|
@ -132,11 +132,11 @@ jobs:
|
||||||
if: ${{ github.ref=='refs/heads/master' && github.event_name!='pull_request' }}
|
if: ${{ github.ref=='refs/heads/master' && github.event_name!='pull_request' }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: "3.7"
|
python-version: "3.9"
|
||||||
- name: Check release
|
- name: Check release
|
||||||
id: check_release
|
id: check_release
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -144,9 +144,10 @@ jobs:
|
||||||
pip install poetry
|
pip install poetry
|
||||||
pip install githubrelease
|
pip install githubrelease
|
||||||
pip install --pre autopub
|
pip install --pre autopub
|
||||||
echo "##[set-output name=release;]$(autopub check)"
|
autopub check
|
||||||
|
continue-on-error: true
|
||||||
- name: Publish
|
- name: Publish
|
||||||
if: ${{ steps.check_release.outputs.release=='' }}
|
if: steps.check_release.outcome=='success'
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||||
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
flake8<4.0
|
flake8
|
||||||
flake8-import-order
|
flake8-import-order
|
||||||
|
|
|
||||||
5
tox.ini
5
tox.ini
|
|
@ -17,7 +17,7 @@ commands =
|
||||||
pytest -s --cov=pelican pelican
|
pytest -s --cov=pelican pelican
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
basepython = python3.7
|
basepython = python3.9
|
||||||
deps =
|
deps =
|
||||||
-rrequirements/docs.pip
|
-rrequirements/docs.pip
|
||||||
changedir = docs
|
changedir = docs
|
||||||
|
|
@ -36,7 +36,8 @@ import-order-style = cryptography
|
||||||
max-line-length = 88
|
max-line-length = 88
|
||||||
|
|
||||||
[testenv:flake8]
|
[testenv:flake8]
|
||||||
basepython = python3.7
|
basepython = python3.9
|
||||||
|
skip_install = true
|
||||||
deps =
|
deps =
|
||||||
-rrequirements/style.pip
|
-rrequirements/style.pip
|
||||||
commands =
|
commands =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue