Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v6
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
uses: docker/setup-buildx-action@v3
- name: Build speculos-builder locally
uses: docker/build-push-action@v7
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfiles/build.Dockerfile
Expand All @@ -40,7 +40,7 @@ jobs:
- name: Export image as artifact
run: docker save speculos-builder:local > /tmp/speculos-builder-image.tar
- name: Upload image artifact
uses: actions/upload-artifact@v7
uses: actions/upload-artifact@v4
with:
name: speculos-builder-image
path: /tmp/speculos-builder-image.tar
Expand All @@ -52,20 +52,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v6
uses: actions/checkout@v4
- name: Download builder image artifact
uses: actions/download-artifact@v8
uses: actions/download-artifact@v4
with:
name: speculos-builder-image
path: /tmp
- name: Load builder image
run: docker load -i /tmp/speculos-builder-image.tar
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
uses: docker/setup-buildx-action@v3
with:
driver: docker
- name: Build speculos image
uses: docker/build-push-action@v7
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfiles/Dockerfile
Expand All @@ -78,11 +78,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v6
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download builder image artifact
uses: actions/download-artifact@v8
uses: actions/download-artifact@v4
with:
name: speculos-builder-image
path: /tmp
Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:
PYTHONPATH=. pytest --cov=speculos --cov-report=xml
"
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v6
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
Expand All @@ -127,18 +127,18 @@ jobs:

steps:
- name: Clone
uses: actions/checkout@v6
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download builder image artifact
uses: actions/download-artifact@v8
uses: actions/download-artifact@v4
with:
name: speculos-builder-image
path: /tmp
- name: Load builder image
run: docker load -i /tmp/speculos-builder-image.tar
- name: Setup Python version
uses: actions/setup-python@v6
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
- name: Build and test
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v6
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Python dependencies
Expand All @@ -31,7 +31,7 @@ jobs:
- name: Generate the documentation
run: (cd docs && make html)
- name: Upload documentation bundle
uses: actions/upload-artifact@v7
uses: actions/upload-artifact@v4
with:
name: documentation
path: docs/build/html/
Expand All @@ -43,7 +43,7 @@ jobs:
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/'))
steps:
- name: Download documentation bundle
uses: actions/download-artifact@v8
uses: actions/download-artifact@v4
- name: Deploy documentation on pages
uses: peaceiris/actions-gh-pages@v4
with:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/fast-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v6
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Python dependency
Expand All @@ -31,7 +31,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v6
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Lint C code
Expand All @@ -46,7 +46,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v6
uses: actions/checkout@v4
- run: pip install mypy types-requests types-setuptools PyQt5-stubs
- name: Mypy type checking
run: mypy speculos
Expand All @@ -56,7 +56,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v6
uses: actions/checkout@v4
- run: pip install bandit
- name: Bandit security checking
run: bandit -r speculos -ll || echo 0
Expand All @@ -66,11 +66,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v6
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check misspellings
uses: codespell-project/actions-codespell@v2
uses: codespell-project/actions-codespell@v1
with:
builtin: clear,rare
check_filenames: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/force-rebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
run: echo "pr_fetch_depth=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_OUTPUT}"

- name: 'Checkout PR branch and all PR commits'
uses: actions/checkout@v6
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: ${{ steps.pr_commits.outputs.pr_fetch_depth }}
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/reusable_ragger_tests_latest_speculos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v6
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
uses: docker/setup-buildx-action@v3

- name: Build the Speculos docker
uses: docker/build-push-action@v7
uses: docker/build-push-action@v6
with:
push: false
tags: ledgerhq/speculos:test
Expand All @@ -45,7 +45,7 @@ jobs:
outputs: type=docker,dest=/tmp/speculos_image.tar

- name: Upload artifact
uses: actions/upload-artifact@v7
uses: actions/upload-artifact@v4
with:
name: speculos_image-${{ inputs.app_branch_name }}
path: /tmp/speculos_image.tar
Expand All @@ -68,7 +68,7 @@ jobs:

steps:
- name: Clone
uses: actions/checkout@v6
uses: actions/checkout@v4
with:
repository: ${{ inputs.app_repository }}
ref: ${{ inputs.app_branch_name }}
Expand Down Expand Up @@ -96,10 +96,10 @@ jobs:
echo "SDK=${SDK,,}" >> $GITHUB_ENV

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
uses: docker/setup-buildx-action@v2

- name: Download artifact
uses: actions/download-artifact@v8
uses: actions/download-artifact@v4
with:
name: speculos_image-${{ inputs.app_branch_name }}
path: /tmp
Expand All @@ -110,7 +110,7 @@ jobs:
docker image ls -a

- name: Download app binaries
uses: actions/download-artifact@v8
uses: actions/download-artifact@v4
with:
name: compiled_app_binaries-${{ inputs.app_branch_name }}
path: ${{ github.workspace }}/app/${{ env.SDK == 'c' && 'build' || 'target' }}
Expand Down
Loading