Skip to content

Commit

Permalink
Add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Moosems committed Jul 25, 2024
1 parent 28b4fea commit 21fc9eb
Show file tree
Hide file tree
Showing 8 changed files with 158 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report---feature-idea.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug Report | Feature Idea
about: Report a bug or suggest a feature
title: "Bug Report | Feature Idea:"
labels: bug, enhancement
assignees: ""
---

**Bug Report:**

Bug explanation: [Insert here]
How to reproduce: [Insert here (if not applicable use "N/A")]
What should happen instead: [Insert here (if not applicable use "N/A")]
Minimum reproducible example:

```python
[Insert here (if not applicable use "N/A")]
```

Traceback:

```
(if not applicable use "N/A")
```

<details>

OS: [Insert here (if not applicable use "N/A")]
Git branch: [Insert here (if not applicable use "N/A")]
Commit that bug started: [Insert here (if not applicable use "N/A")]

</details>

---

Feature report:

Explain your idea, how it could be implemented, and why it should be added. The more detail you give, the more likely it is to be added. Code snippets that could help add it are _highly recommend_.
4 changes: 4 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Fixes #__.

Changes in PR:
- ...
17 changes: 17 additions & 0 deletions .github/workflows/isort.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Isort Formatting

on: push

jobs:
formatting-isort:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.11.1

- name: Code Formatting (App)
run: |
pip install -r requirements-dev.txt
isort --check .
29 changes: 29 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Upload salve to Pypi

on:
release:
types: [published]

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11.1
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Build and publish to Pypi
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python -m build --sdist
python -m build --wheel
python setup.py sdist
twine upload dist/*
17 changes: 17 additions & 0 deletions .github/workflows/ruff-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Ruff Formatting

on: push

jobs:
formatting-ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.11.1

- name: Code Formatting (App)
run: |
pip install -r requirements-dev.txt
ruff format --check .
17 changes: 17 additions & 0 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Ruff Check

on: push

jobs:
ruff-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.11.1

- name: Code Formatting (App)
run: |
pip install -r requirements-dev.txt
ruff check .
18 changes: 18 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Code Tests

on: push

jobs:
testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.11.1

- name: Run tests
run: |
pip install .
pip install -r requirements-dev.txt
python3 -m pytest .
18 changes: 18 additions & 0 deletions .github/workflows/windows-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Code Tests (On Windows)

on: push

jobs:
testing-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.11.1

- name: Run tests
run: |
pip install .
pip install -r requirements-dev.txt
python3 -m pytest . -s

0 comments on commit 21fc9eb

Please sign in to comment.