Skip to content

Commit

Permalink
Merge pull request #3051 from avaris/gh-actions-update
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmayer committed Oct 25, 2022
2 parents 2a7e691 + cdc90d5 commit 66408d6
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 22 deletions.
39 changes: 20 additions & 19 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,29 +29,29 @@ jobs:
python: "3.7"

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Python ${{ matrix.config.python }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.config.python }}
- name: Set up Pip cache (Linux)
uses: actions/cache@v2
uses: actions/cache@v3
if: startsWith(runner.os, 'Linux')
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements/*') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Set up Pip cache (macOS)
uses: actions/cache@v2
uses: actions/cache@v3
if: startsWith(runner.os, 'macOS')
with:
path: ~/Library/Caches/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements/*') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Setup pip cache (Windows)
uses: actions/cache@v2
uses: actions/cache@v3
if: startsWith(runner.os, 'Windows')
with:
path: ~\AppData\Local\pip\Cache
Expand All @@ -62,7 +62,7 @@ jobs:
if: startsWith(runner.os, 'Linux')
run: sudo locale-gen fr_FR.UTF-8 tr_TR.UTF-8
- name: Install pandoc
uses: r-lib/actions/setup-pandoc@v1
uses: r-lib/actions/setup-pandoc@v2
with:
pandoc-version: "2.9.2"
- name: Install tox
Expand All @@ -82,13 +82,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "3.7"
python-version: "3.9"
- name: Set pip cache (Linux)
uses: actions/cache@v2
uses: actions/cache@v3
if: startsWith(runner.os, 'Linux')
with:
path: ~/.cache/pip
Expand All @@ -106,13 +106,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "3.7"
python-version: "3.9"
- name: Set pip cache (Linux)
uses: actions/cache@v2
uses: actions/cache@v3
if: startsWith(runner.os, 'Linux')
with:
path: ~/.cache/pip
Expand All @@ -132,21 +132,22 @@ jobs:
if: ${{ github.ref=='refs/heads/master' && github.event_name!='pull_request' }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "3.7"
python-version: "3.9"
- name: Check release
id: check_release
run: |
python -m pip install pip --upgrade
pip install poetry
pip install githubrelease
pip install --pre autopub
echo "##[set-output name=release;]$(autopub check)"
autopub check
continue-on-error: true
- name: Publish
if: ${{ steps.check_release.outputs.release=='' }}
if: steps.check_release.outcome=='success'
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
Expand Down
2 changes: 1 addition & 1 deletion requirements/style.pip
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
flake8<4.0
flake8
flake8-import-order
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ commands =
pytest -s --cov=pelican pelican

[testenv:docs]
basepython = python3.7
basepython = python3.9
deps =
-rrequirements/docs.pip
changedir = docs
Expand All @@ -36,7 +36,8 @@ import-order-style = cryptography
max-line-length = 88

[testenv:flake8]
basepython = python3.7
basepython = python3.9
skip_install = true
deps =
-rrequirements/style.pip
commands =
Expand Down

0 comments on commit 66408d6

Please sign in to comment.