Skip to content

Commit

Permalink
Setup CI build config
Browse files Browse the repository at this point in the history
  • Loading branch information
huangsam committed Oct 1, 2024
1 parent 9136662 commit 978cf80
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI

on:
- push
- pull_request

permissions:
contents: read

jobs:
python-build:
name: Python 3.12
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with ruff
run: |
ruff check python
- name: Run tests and coverage
run: |
coverage run manage.py test
coverage report

0 comments on commit 978cf80

Please sign in to comment.