Skip to content

Commit

Permalink
Unify action titles
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Dec 17, 2024
1 parent 4624444 commit fc4ce56
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CodSpeed
name: Performance

on:
push:
Expand All @@ -11,20 +11,24 @@ jobs:
benchmarks:
name: 📈 Benchmarks
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5

- name: Set up Python 3.12
uses: actions/setup-python@v5
id: setup-python
with:
python-version: "3.12"
architecture: x64

- run: pipx install poetry

- run: poetry env use 3.12
- run: poetry install --with test
- name: Install with poetry
run: |
pipx install poetry
poetry env use 3.12
poetry install --with test
- name: Run benchmarks
- name: Run benchmarks with CodSpeed
uses: CodSpeedHQ/action@v3
with:
token: ${{ secrets.CODSPEED_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on: [push, pull_request]

jobs:
lint:
name: 🧹 Lint
runs-on: ubuntu-latest

steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
build:
name: 🏗️ Build
runs-on: ubuntu-latest

steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on: [push, pull_request]

jobs:
tests:
name: 🧪 Tests
runs-on: ubuntu-latest

strategy:
Expand Down
2 changes: 1 addition & 1 deletion tests/benchmarks/test_visit.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ def test_visit_all_ast_nodes(benchmark, big_schema_sdl): # noqa: F811
def test_visit_all_ast_nodes_in_parallel(benchmark, big_schema_sdl): # noqa: F811
document_ast = parse(big_schema_sdl)
visitor = DummyVisitor()
parallel_visitor = ParallelVisitor([visitor] * 20)
parallel_visitor = ParallelVisitor([visitor] * 25)
benchmark(lambda: visit(document_ast, parallel_visitor))

0 comments on commit fc4ce56

Please sign in to comment.