Skip to content

Commit

Permalink
blacksmith.sh: Migrate workflows to Blacksmith (#79)
Browse files Browse the repository at this point in the history
This PR migrates some selected workflows to Blacksmith.

Co-authored-by: blacksmith-sh[bot] <157653362+blacksmith-sh[bot]@users.noreply.github.com>
  • Loading branch information
blacksmith-sh[bot] authored Oct 15, 2024
1 parent c0c924e commit 95a8fff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: build
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.7
uses: actions/setup-python@v5
uses: useblacksmith/setup-python@v6
with:
python-version: '3.7'
- name: Install flake8
Expand All @@ -16,15 +16,15 @@ jobs:
flake8 --version
flake8
unit:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.7
uses: actions/setup-python@v5
uses: useblacksmith/setup-python@v6
with:
python-version: '3.7'
- name: Cache pip
uses: actions/cache@v4
uses: useblacksmith/cache@v5
with:
path: ~/.cache/pip
key: pip-${{ runner.os }}-${{ secrets.CACHE_VERSION }}-${{ hashFiles('requirements.txt') }}
Expand All @@ -42,11 +42,11 @@ jobs:
run: coverage xml
- uses: codecov/codecov-action@v4
styles:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
- name: Set up Node 20
uses: actions/setup-node@v4
uses: useblacksmith/setup-node@v5
with:
node-version: 20
- name: Install npm packages
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/compilemessages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ on:
- 'locale/**'
jobs:
compilemessages:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.7
uses: actions/setup-python@v5
uses: useblacksmith/setup-python@v6
with:
python-version: '3.7'
- name: Checkout submodules
Expand Down

0 comments on commit 95a8fff

Please sign in to comment.