Skip to content

Commit

Permalink
Add GitHub Actions (#70)
Browse files Browse the repository at this point in the history
* Update lint.yml

* Add test workflow
  • Loading branch information
gorold authored Jun 11, 2024
1 parent 89d104d commit adf7206
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v3
- uses: psf/black@stable
with:
use_pyproject: true
options: "--check --verbose --line-length 88"
jupyter: true
isort:
runs-on: ubuntu-latest
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Test

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e '.[dev,notebook]'
- name: Test with pytest
run: |
pytest test

0 comments on commit adf7206

Please sign in to comment.