Skip to content

Commit 7939d1a

Browse files
committed
fix: run yamlfix
1 parent c41d6fa commit 7939d1a

File tree

5 files changed

+16
-47
lines changed

5 files changed

+16
-47
lines changed

.github/dependabot.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
---
12
version: 2
23
updates:
3-
- package-ecosystem: "pip"
4-
directory: "/"
5-
schedule:
6-
interval: "weekly"
4+
- package-ecosystem: pip
5+
directory: /
6+
schedule:
7+
interval: weekly

.github/workflows/build-wheels.yml

+4-18
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,60 @@
1+
---
12
name: Build source and wheel packages
2-
33
on:
44
push:
5-
branches:
6-
- main
5+
branches: [main]
76
pull_request:
8-
branches:
9-
- main
10-
7+
branches: [main]
118
jobs:
129
build:
1310
strategy:
1411
fail-fast: false
1512
matrix:
1613
os: [macos-12, macos-13, macos-14, ubuntu-22.04, ubuntu-24.04]
1714
runs-on: ${{ matrix.os }}
18-
1915
steps:
2016
- uses: actions/checkout@v4
21-
2217
- name: Workaround github issue https://github.com/actions/runner-images/issues/7192
2318
if: startsWith(matrix.os, 'ubuntu-')
2419
run: sudo echo RESET grub-efi/install_devices | sudo debconf-communicate grub-pc
25-
2620
- name: Set up Python
2721
if: startsWith(matrix.os, 'macos')
2822
uses: actions/setup-python@v2
2923
with:
3024
python-version: 3.11
31-
3225
- name: Cache dependencies
3326
uses: actions/cache@v4
3427
with:
3528
path: ~/.cache/pip
3629
key: ${{ runner.os }}-build-wheels-${{ hashFiles('pyproject.toml') }}
3730
restore-keys: |
3831
${{ runner.os }}-build-wheels-
39-
4032
- name: Install required system packages for macOS
4133
if: startsWith(matrix.os, 'macos-')
4234
run: |
4335
brew update
4436
brew tap cuber/homebrew-libsecp256k1
4537
brew install libsecp256k1
46-
4738
- name: Install required system packages only for Ubuntu Linux
4839
if: startsWith(matrix.os, 'ubuntu-')
4940
run: |
5041
sudo apt-get update
5142
sudo apt-get -y upgrade
5243
sudo apt-get install -y libsecp256k1-dev
53-
5444
- name: Install Hatch
5545
run: |
5646
python3 -m venv /tmp/venv
5747
/tmp/venv/bin/python3 -m pip install --upgrade hatch
58-
5948
- name: Build source and wheel packages
6049
run: |
6150
/tmp/venv/bin/python3 -m hatch build
62-
6351
- name: Install the Python wheel
6452
run: |
6553
/tmp/venv/bin/python3 -m pip install dist/aleph_sdk_python-*.whl
66-
6754
- name: Install `setuptools` on systems where it is missing by default
6855
run: /tmp/venv/bin/python3 -m pip install --upgrade setuptools
6956
if: matrix.os == 'ubuntu-24.04'
70-
7157
- name: Import and use the package
72-
run: |
58+
run: |-
7359
/tmp/venv/bin/python3 -c "import aleph.sdk"
7460
/tmp/venv/bin/python3 -c "from aleph.sdk.chains.ethereum import get_fallback_account; get_fallback_account()"

.github/workflows/code-quality.yml

+2-10
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,29 @@
1+
---
12
name: Test code quality
2-
33
on:
44
push:
55
pull_request:
6-
branches:
7-
- main
8-
6+
branches: [main]
97
jobs:
108
code-quality:
119
runs-on: ubuntu-24.04
12-
1310
steps:
1411
- uses: actions/checkout@v4
15-
1612
- name: Workaround github issue https://github.com/actions/runner-images/issues/7192
1713
run: sudo echo RESET grub-efi/install_devices | sudo debconf-communicate grub-pc
18-
1914
- name: Install system dependencies
2015
run: |
2116
sudo apt-get install -y python3-pip libsecp256k1-dev
22-
2317
- name: Cache dependencies
2418
uses: actions/cache@v4
2519
with:
2620
path: ~/.cache/pip
2721
key: ${{ runner.os }}-code-quality-${{ hashFiles('pyproject.toml') }}
2822
restore-keys: |
2923
${{ runner.os }}-code-quality-
30-
3124
- name: Install python dependencies
3225
run: |
3326
python3 -m venv /tmp/venv
3427
/tmp/venv/bin/pip install hatch
35-
3628
- name: Run Hatch lint
3729
run: /tmp/venv/bin/hatch run linting:all

.github/workflows/pr-rating.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1+
---
12
name: PR Difficulty Rating Action
2-
33
permissions:
44
pull-requests: write
5-
65
on:
76
pull_request:
87
types: [opened, reopened, ready_for_review]
9-
108
jobs:
119
difficulty-rating:
1210
runs-on: ubuntu-latest

.github/workflows/pytest.yml

+4-12
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,39 @@
1+
---
12
name: Test/Coverage with Python
2-
33
on:
44
push:
55
pull_request:
6-
branches:
7-
- main
6+
branches: [main]
87
schedule:
98
# Run every night at 04:00 (GitHub Actions timezone)
109
# in order to catch when unfrozen dependency updates
1110
# break the use of the library.
12-
- cron: '4 0 * * *'
13-
11+
- cron: 4 0 * * *
1412
jobs:
1513
tests:
1614
strategy:
1715
fail-fast: false
1816
matrix:
19-
python-version: [ "3.9", "3.10", "3.11" ]
17+
python-version: ['3.9', '3.10', '3.11']
2018
# An issue with secp256k1 prevents Python 3.12 from working
2119
# See https://github.com/baking-bad/pytezos/issues/370
2220
runs-on: ubuntu-latest
23-
2421
steps:
2522
- uses: actions/checkout@v4
2623
- uses: actions/setup-python@v5
2724
with:
2825
python-version: ${{ matrix.python-version }}
29-
3026
- run: sudo apt-get install -y python3-pip libsecp256k1-dev
31-
3227
- run: |
3328
python3 -m venv /tmp/venv
3429
/tmp/venv/bin/python -m pip install --upgrade pip hatch coverage
35-
3630
- run: |
3731
/tmp/venv/bin/pip freeze
3832
/tmp/venv/bin/hatch run testing:pip freeze
3933
/tmp/venv/bin/hatch run testing:test
4034
if: matrix.python-version != '3.11'
41-
4235
- run: /tmp/venv/bin/hatch run testing:cov
4336
if: matrix.python-version == '3.11'
44-
4537
- uses: codecov/[email protected]
4638
if: matrix.python-version == '3.11'
4739
with:

0 commit comments

Comments
 (0)