Skip to content

Commit

Permalink
Bump Dependencies (#112)
Browse files Browse the repository at this point in the history
* Update dependencies

* Bump setup-python from v4 to v5

* rollback action/setup-python

* Workaround CI

* Bump  actions/setup-python to v5
  • Loading branch information
mbovo authored Jan 10, 2024
1 parent 7365e14 commit 63f9d2a
Show file tree
Hide file tree
Showing 5 changed files with 187 additions and 217 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- uses: pre-commit/action@v3.0.0
Expand All @@ -21,11 +21,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- uses: arduino/setup-task@v1
- run: task setup
- run: task setup-ci
- run: task build
- name: "Release to pypi"
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- uses: pre-commit/action@v3.0.0
Expand All @@ -16,12 +16,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- uses: arduino/setup-task@v1
- name: Prepare dev env
run: task setup
shell: bash
run: task setup-ci
- name: Lint and tests
run: |
source .venv/bin/activate
Expand All @@ -34,11 +35,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- uses: arduino/setup-task@v1
- run: task setup
- run: task setup-ci
- run: task build

docker-build-test:
Expand Down
21 changes: 21 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,16 @@ tasks:
- poetry.lock
method: checksum

dependency-install-ci:
cmds:
- poetry install
sources:
- poetry.lock
- pyproject.toml
generates:
- poetry.lock
method: checksum

setup:
desc: Bootstrap dev environment
preconditions:
Expand All @@ -70,6 +80,17 @@ tasks:
- task: pre-commit
- task: dependency-install

setup-ci:
preconditions:
- sh: "[ $(python3 --version | cut -d ' ' -f 2 | awk -F'.' '{print ($2 >= 8) }') = 1 ]"
msg: "Required python version not found (>=3.8)"
cmds:
- task: pre-commit-setup
- task: poetry-setup
- task: virtualenv
- task: pre-commit
- task: dependency-install-ci

test:
desc: Run python test and coverage
cmds:
Expand Down
Loading

0 comments on commit 63f9d2a

Please sign in to comment.