Skip to content

Commit

Permalink
Merge pull request #14 from edahelsinki/update-github-actions
Browse files Browse the repository at this point in the history
Update Github actions
  • Loading branch information
Aggrathon authored Feb 16, 2024
2 parents fdfd18f + 2402b96 commit e26e2aa
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/python-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x

Expand All @@ -24,4 +24,4 @@ jobs:
python -m pip install -r docs/requirements-dev.txt
- name: Build and deploy
run: mkdocs gh-deploy --force --clean --verbose
run: mkdocs gh-deploy --force --clean --verbose
11 changes: 5 additions & 6 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,15 @@ jobs:
id-token: write

steps:
- 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: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install build
python -m pip install --upgrade pip build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@v1.8.5
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
10 changes: 7 additions & 3 deletions .github/workflows/python-pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
Expand All @@ -35,7 +35,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- run: python -m pip install --upgrade pip build
- name: Build package
run: |
Expand All @@ -46,7 +48,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- run: python -m pip install --upgrade pip ruff
- name: Lint with Ruff
run: |
Expand Down

0 comments on commit e26e2aa

Please sign in to comment.