Skip to content

Commit

Permalink
dependabot, a github action and requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
zippy1981 committed Jan 6, 2024
1 parent ac4c18a commit 2c63b0d
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/dependabot.yml
@@ -0,0 +1,9 @@
version: 2
updates:
- package-ecosystem: "pip"
directory: "/" # Monitor all Python dependencies in the repository
schedule:
interval: "daily" # Check for updates daily
open-pull-requests-limit: 10 # Limit open pull requests to 10
reviewers:
- "zippy1981" # Optional: request review from a specific user
40 changes: 40 additions & 0 deletions .github/workflows/python.yml
@@ -0,0 +1,40 @@
name: Python with Virtual Environment

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9

- name: Create and activate virtual environment
run: |
python -m venv venv
source venv/bin/activate
- name: Install dependencies
run: pip install -r requirements.txt

- name: Install linting tool
run: pip install flake8 # Install flake8 within the virtual environment

- name: Lint Python code
run: flake8 . # Lint all Python files in the current directory

- name: Run tests
run: python -m unittest

- name: Other actions (e.g., linting, code coverage)
run: # Add your desired actions here

2 changes: 2 additions & 0 deletions requirements.txt
@@ -0,0 +1,2 @@
dynaconf==3.2.4
Mastodon.py==1.8.1c

0 comments on commit 2c63b0d

Please sign in to comment.