Skip to content

Commit

Permalink
Add linter action
Browse files Browse the repository at this point in the history
  • Loading branch information
valentimarco committed Jun 9, 2024
1 parent a7857d1 commit 45732e8
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Cheshire-Cat Linter Action

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
pull_request:
branches: [main, develop]
push:
branches: [main, develop]


jobs:
linter:
name: "Run linter"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
test:
needs: [ linter ]
name: "Run Tests"
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v2
- name: Cat up
run: docker-compose up -d
- name: Test
run: docker exec cheshire_cat_core python -m pytest --color=yes .
- name: Cat down
run: docker-compose down

0 comments on commit 45732e8

Please sign in to comment.