Skip to content

Commit

Permalink
Wip: Add CI workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
tbirdso committed Nov 7, 2023
1 parent b5be5b7 commit 6a51ff1
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: 'lint'

on:
[push, pull_request]

jobs:
ruff-check:
name: "Lint with Ruff"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: chartboost/ruff-action@v1
with:
src: "./src"

black-autoformat:
name: "Lint with Black"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: psf/black@stable
26 changes: 26 additions & 0 deletions .github/workflows/test-notebooks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: 'test'

on:
[push, pull_request]

jobs:
pytest:
name: "Test with PyTest"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: "Install Dependencies"
shell: bash
run: |
python -m pip install flit
cd src
flit install --extras all
- name: "Run Tests"
shell: bash
run: |
pytest --nbmake --nbmake-timeout=30000 examples/*.ipynb
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: 'test'

on:
[push, pull_request]

jobs:
pytest:
name: "Test with PyTest"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: "Install Dependencies"
shell: bash
run: |
python -m pip install flit
cd src
flit install --extras all
- name: "Run Tests"
shell: bash
run: |
pytest ./src
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6a51ff1

Please sign in to comment.