Skip to content

Commit

Permalink
ci: add lint workflow (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Oct 24, 2023
1 parent 96ef4a5 commit b485a2f
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
lint:
name: lint
runs-on: ubuntu-latest
if: github.repository == 'Modern-Treasury/modern-treasury-python'

steps:
- uses: actions/checkout@v3

- name: Install Rye
run: |
curl -sSf https://rye-up.com/get | bash
echo "$HOME/.rye/shims" >> $GITHUB_PATH
env:
RYE_VERSION: 0.15.2
RYE_INSTALL_OPTION: "--yes"

- name: Install dependencies
run: |
rye sync --all-features
- name: Run type checking
run: |
rye run typecheck
- name: Ensure importable
run: |
rye run python -c 'import modern_treasury'
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.9.18

0 comments on commit b485a2f

Please sign in to comment.