Skip to content

Commit

Permalink
chore: run hatch run linting:fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Psycojoker committed Jan 14, 2025
1 parent 67d6f48 commit 4ffeddd
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 9 deletions.
11 changes: 7 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
version: 2


updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
15 changes: 11 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
name: Tests


on:
push:
branches:
Expand All @@ -8,6 +10,7 @@ on:
branches:
- "*"


jobs:
build:
runs-on: ubuntu-20.04
Expand All @@ -16,17 +19,21 @@ jobs:
- uses: actions/checkout@v3

# Use GitHub's Docker registry to cache intermediate layers
- run: echo ${{ secrets.GITHUB_TOKEN }} | docker login docker.pkg.github.com -u $GITHUB_ACTOR --password-stdin
- run: docker pull docker.pkg.github.com/$GITHUB_REPOSITORY/aleph-message-build-cache || true
- run: echo ${{ secrets.GITHUB_TOKEN }} | docker login docker.pkg.github.com
-u $GITHUB_ACTOR --password-stdin
- run: docker pull docker.pkg.github.com/$GITHUB_REPOSITORY/aleph-message-build-cache
|| true

- name: Build the Docker image
run: |
git fetch --tags
docker build . -t aleph-message:${GITHUB_REF##*/} -f Dockerfile --cache-from=docker.pkg.github.com/$GITHUB_REPOSITORY/aleph-message-build-cache
- name: Cache the image on GitHub's repository
run: docker tag aleph-message:${GITHUB_REF##*/} docker.pkg.github.com/$GITHUB_REPOSITORY/aleph-message-build-cache && docker push docker.pkg.github.com/$GITHUB_REPOSITORY/aleph-message-build-cache || true
run: docker tag aleph-message:${GITHUB_REF##*/} docker.pkg.github.com/$GITHUB_REPOSITORY/aleph-message-build-cache
&& docker push docker.pkg.github.com/$GITHUB_REPOSITORY/aleph-message-build-cache
|| true

- name: Test that aleph_message is correctly installed
run: |
run: |-
docker run aleph-message:${GITHUB_REF##*/} python -c "from aleph_message import parse_message"
3 changes: 3 additions & 0 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
name: Tests


on:
push:
branches:
Expand All @@ -8,6 +10,7 @@ on:
branches:
- "*"


jobs:
code-quality:
runs-on: ubuntu-latest
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/pytests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
name: Tests


on:
push:
branches:
Expand All @@ -8,12 +10,13 @@ on:
branches:
- "*"


jobs:
tests:
strategy:
fail-fast: false
matrix:
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
python-version: ["3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-22.04, ubuntu-24.04]
runs-on: ${{ matrix.os }}

Expand Down

0 comments on commit 4ffeddd

Please sign in to comment.