Skip to content

Commit

Permalink
add ci actions for python (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
jialeicui authored Jan 31, 2024
1 parent c489941 commit a44c399
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/server.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Server Lint and Test

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

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

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: '3.9'

- name: Install dependencies
working-directory: src/server
run: make install-dev-dep

- name: Lint Check
working-directory: src/server
run: make lint

1 change: 1 addition & 0 deletions src/server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ format:

lint:
python -m mypy .
python -m ruff check .

0 comments on commit a44c399

Please sign in to comment.