Skip to content

Commit

Permalink
Update CD action
Browse files Browse the repository at this point in the history
  • Loading branch information
luismedel committed Nov 11, 2024
1 parent c347472 commit f7dd126
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
18 changes: 16 additions & 2 deletions .bluish/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@ var:
python_version: "3.11"

jobs:
_prepare_lint:
name: Prepare linters
steps:
- run: |
pip3 install -r requirements-linting.txt
lint:
name: Runs ruff and mypy
depends_on: [_prepare_lint]
steps:
- run: |
ruff version
Expand All @@ -15,23 +22,30 @@ jobs:
fix:
name: Reformats the code using ruff
depends_on:
- lint
depends_on: [lint]
steps:
- run: |
ruff version
ruff check --select I --fix src/ test/
ruff format src/
echo ""
_prepare_tests:
name: Prepare tests
steps:
- run: |
pip3 install -r requirements-testing.txt
test:
name: Runs pytest
depends_on: [_prepare_tests]
steps:
- run: |
pytest -n 2
test-all:
name: Runs pytest
depends_on: [_prepare_tests]
steps:
- run: |
pytest -n 2 --run-docker
5 changes: 2 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Fire the publish workflow using Bluish
name: Deploy

on: [push, workflow_dispatch]

Expand All @@ -10,6 +10,5 @@ jobs:
- uses: actions/checkout@v4
- uses: luismedel/setup-bluish@v3
- run: |
pip3 install -r requirements-testing.txt
- run: |
blu ci:lint
blu ci:test-all

0 comments on commit f7dd126

Please sign in to comment.