Skip to content

Commit

Permalink
ENG-1075: Ruff CI
Browse files Browse the repository at this point in the history
  • Loading branch information
daabr committed Jul 4, 2024
1 parent d19baae commit 6fc1c21
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Continuous Integration workflow. For more information see:
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
# https://docs.astral.sh/ruff/integrations/#github-actions

name: CI

on:
push:
branches: [main]
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest ruff
- name: Lint & format with ruff
run: |
ruff check --target-version py311 --output-format github .
ruff format --target-version py311 --check .
- name: Test with pytest
run: |
pytest

0 comments on commit 6fc1c21

Please sign in to comment.