Skip to content

Commit

Permalink
feat: add CI to test Python builds
Browse files Browse the repository at this point in the history
Signed-off-by: K.B.Dharun Krishna <[email protected]>
  • Loading branch information
kbdharun committed Feb 26, 2025
1 parent 5aec493 commit b94ef66
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 5 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Test

on: ['push', 'pull_request']

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: pip install -r requirements.txt

- name: Build index
run: python3 eratosthenes.py index
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ packages.db
eratosthenes.db
__pycache__
env
config.py
poetry.lock
node_modules/
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ You can install all the requirements with `pip install -r requirements.txt`.

## Usage

To run the indexer, simply run `python eratosthenes.py index`. This will create
To run the indexer, simply run `python3 eratosthenes.py index`. This will create
the database and index the repository.

To run the web server, run `python eratosthenes.py serve`. This will start a web
To run the web server, run `python3 eratosthenes.py serve`. This will start a web
server on port `5000` by default, but you can change it in the configuration
file as explained below.

Expand Down Expand Up @@ -58,8 +58,8 @@ pip install -r requirements.txt
### Build Index & Start the server

```bash
python eratosthenes.py index
python eratosthenes.py serve
python3 eratosthenes.py index
python3 eratosthenes.py serve
```

### Re-build Tailwind CSS
Expand Down
File renamed without changes.

0 comments on commit b94ef66

Please sign in to comment.