diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..efb58eb --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +version: 2 +updates: + - package-ecosystem: "pip" + directory: "/" # Root directory of your repository + schedule: + interval: "weekly" # Check for updates once a week + + - package-ecosystem: "github-actions" + directory: "/" # Monitors actions used in workflows + schedule: + interval: "weekly" \ No newline at end of file diff --git a/.github/workflows/formatting.yml b/.github/workflows/formatting.yml new file mode 100644 index 0000000..9eac5cf --- /dev/null +++ b/.github/workflows/formatting.yml @@ -0,0 +1,25 @@ +name: Formatting Check + +on: + pull_request: + branches: + - main + - dev + +jobs: + format: + runs-on: ubuntu-22.04 + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: 3.10 + + - name: Install black + run: pip install black + + - name: Check formatting + run: black --check . diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml new file mode 100644 index 0000000..45580b0 --- /dev/null +++ b/.github/workflows/testing.yml @@ -0,0 +1,34 @@ +name: Testing + +on: + push: + branches: + - main + - dev + pull_request: + branches: + - main + - dev + +jobs: + test: + runs-on: ubuntu-22.04 + strategy: + matrix: + python-version: [3.8, 3.9, 3.10, 3.11] + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pytest + + - name: Run tests + run: pytest