Skip to content

Commit

Permalink
Update GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dralshehri committed Dec 18, 2023
1 parent 31d892a commit 4348bbe
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 17 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.12'
cache: pip
cache-dependency-path: ${{ env.REQUIREMENTS_FILE }}
- name: Install dependencies
Expand All @@ -53,12 +53,12 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
Expand All @@ -79,7 +79,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.12'
cache: pip
cache-dependency-path: ${{ env.REQUIREMENTS_FILE }}
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
version: ${{ steps.version.outputs.version }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Get release info
run: |
echo "git-version=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV
Expand All @@ -37,7 +37,7 @@ jobs:
needs: get-version
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Prepare release changes
env:
VERSION: ${{ needs.get-version.outputs.version }}
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
needs: call-checks
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.PERSONAL_ACTION_TOKEN }}
Expand All @@ -33,28 +33,27 @@ jobs:
name: Publish package to PyPI
runs-on: ubuntu-latest
needs: update-default
permissions:
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.12'
- name: Install dependencies
run: pip install build
- name: Build distributions
run: python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
clean-runs:
name: Clean up workflow runs
runs-on: ubuntu-latest
steps:
- name: Run cleaning script
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const workflows = [
Expand Down

0 comments on commit 4348bbe

Please sign in to comment.