Skip to content

Commit

Permalink
Add GitHub Actions CI workflow for code formatting and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bbartling committed Aug 12, 2024
1 parent 1f8c1a1 commit c039371
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12' # or your required Python version

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install black pytest
- name: Run Black
run: |
black --check open_fdd/ tests/
- name: Run tests
run: |
pytest tests/

0 comments on commit c039371

Please sign in to comment.