Skip to content

Commit

Permalink
ci: reformat, reset branches & upgrade actions (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
Karanjot786 authored Oct 8, 2024
1 parent d2659e6 commit d7ecb6b
Showing 1 changed file with 30 additions and 33 deletions.
63 changes: 30 additions & 33 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,40 @@ name: CI

on:
push:
branches: [ main ]
branches: '*'
pull_request:
branches: [ main ]
branches: '*'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11'

- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry install
- name: Lint with Ruff
run: |
poetry run ruff check crategen/
- name: Type check with Mypy
run: |
poetry run mypy crategen/
- name: Run security checks with Bandit
run: |
poetry run bandit -r crategen/
- name: Install test dependencies
run: |
poetry add pytest pytest-cov pytest-mock
# - name: Run tests
# run: |
# poetry run pytest --cov=crategen
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry install
- name: Lint with Ruff
run: |
poetry run ruff check crategen/
if: ${{ success() }}

- name: Type check with Mypy
run: |
poetry run mypy crategen/
- name: Run security checks with Bandit
run: |
poetry run bandit -r crategen/
- name: Install test dependencies
run: |
poetry add pytest pytest-cov pytest-mock

0 comments on commit d7ecb6b

Please sign in to comment.