Skip to content

Commit

Permalink
ci: normalize names
Browse files Browse the repository at this point in the history
  • Loading branch information
neersighted committed Mar 25, 2024
1 parent 3c79f25 commit 7c49442
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/backport.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
with:
app-id: ${{ secrets.POETRY_TOKEN_APP_ID }}
private-key: ${{ secrets.POETRY_TOKEN_APP_KEY }}
- name: cherry-pick
- name: backport.sh
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
run: |
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Documentation Preview"
name: Documentation Preview

on:
pull_request:
Expand Down Expand Up @@ -28,13 +28,11 @@ jobs:
(github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'impact/docs'))
|| (github.event_name != 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)
steps:
- name: Checkout Website Source
uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: python-poetry/website

- name: Checkout Poetry Source
uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
path: poetry
ref: ${{ github.event.pull_request.head.sha }}
Expand All @@ -51,17 +49,15 @@ jobs:

- run: poetry install --sync --no-root --only main

- name: Build Website
run: |
- run: |
# Rebuild the docs files from the PR checkout.
poetry run python bin/website build --local ./poetry
# Build website assets (CSS/JS).
npm ci && npm run prod
# Build the static website.
hugo -v --minify
- name: Deploy Website
uses: amondnet/vercel-action@v25
- uses: amondnet/vercel-action@v25
id: vercel-action
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/lock-threads.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: 'Lock Threads'
name: Lock Threads

on:
schedule:
# at the end of everyday
- cron: '0 0 * * *'
- cron: '0 0 * * *' # every day at midnight
workflow_dispatch:

permissions:
Expand All @@ -15,7 +14,7 @@ concurrency:
group: lock-threads

jobs:
action:
lock-threads:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v5
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,9 @@ jobs:

- run: poetry install --sync --only main,test

- name: Regenerate PyPI fixtures
run: PYTHONPATH="$PWD" poetry run python tests/repositories/fixtures/pypi.org/generate.py
- run: poetry run env PYTHONPATH="$GITHUB_WORKSPACE" python tests/repositories/fixtures/pypi.org/generate.py

- name: Check for changed files
run: git diff --exit-code --stat HEAD tests/repositories/fixtures/pypi.org
- run: git diff --exit-code --stat HEAD tests/repositories/fixtures/pypi.org

mypy:
name: mypy [${{ matrix.os.name }} / Python ${{ matrix.python-version }}]
Expand Down

0 comments on commit 7c49442

Please sign in to comment.