Skip to content

Commit

Permalink
Change the version of ci/cd actions
Browse files Browse the repository at this point in the history
  • Loading branch information
SoulRaven committed Jun 10, 2024
1 parent ef241df commit e120779
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 5 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/publish_to_pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: >-
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
on:
release:
types: [ published ]
branches: [ main ]
jobs:
quality:
runs-on: ubuntu-latest
steps:

- name: Check out
uses: actions/checkout@v4

- name: Set up the environment
uses: ./.github/workflows/setup-poetry

- name: Run checks
uses: ./.github/workflows/checks

tox:
runs-on: ubuntu-latest
needs: quality
strategy:
matrix:
python-version: [ '3.10' ]
steps:
- name: Check out
uses: actions/checkout@v4

- name: Set up the environment
uses: ./.github/workflows/setup-poetry
with:
python-version: ${{ matrix.python-version }}

- name: Test with tox
run: |
source .venv/bin/activate
poetry add tox-gh-actions
tox
4 changes: 2 additions & 2 deletions .github/workflows/push_to_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:

- name: Check out
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up the environment
uses: ./.github/workflows/setup-poetry
Expand All @@ -28,7 +28,7 @@ jobs:
steps:

- name: Check out
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up the environment
uses: ./.github/workflows/setup-poetry
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/setup-poetry/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ runs:
# check-out repo and set-up python
#----------------------------------------------
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set up python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
#----------------------------------------------
Expand All @@ -33,7 +33,7 @@ runs:
#----------------------------------------------
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
Expand Down

0 comments on commit e120779

Please sign in to comment.