Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
sborms committed Oct 26, 2023
1 parent 1cf5f20 commit 7fa5e33
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 35 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/scraper.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Run scraper and update SQLite database
name: Scraper

on:
# push:
# branches: [ "main" ]
schedule:
- cron: "45 02 * * THU" # at 02:45 every Thursday
- cron: "45 02 * * THU" # rerun at UTC 02:45 every Thursday
# allow manual trigger
workflow_dispatch:

permissions:
actions: write
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run CI/CD pipeline
name: Tests

on:
push:
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
install:
@echo ">>> Installing dependencies"
pip install --upgrade pip && pip install -r requirements.txt
pip install --upgrade pip
pip install -r requirements.txt

format:
@echo ">>> Formatting files using isort and Black"
Expand All @@ -13,10 +14,9 @@ lint:

lint-container:
@echo ">>> Linting Dockerfile(s)"
docker run --rm -i hadolint/hadolint < Dockerfile
docker run --rm -i hadolint/hadolint < webapp/Dockerfile

refactor:
format lint lint-container
refactor: format lint lint-container

coverage:
@echo ">>> Displaying pytest coverage report"
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# ⚽ Futsal Friend: Your Digital Futsal Companion

[![Run CI/CD pipeline](https://github.com/sborms/futsalfriend/actions/workflows/cicd.yaml/badge.svg)](https://github.com/sborms/futsalfriend/actions/workflows/cicd.yaml)
[![Tests](https://github.com/sborms/futsalfriend/actions/workflows/cicd.yaml/badge.svg)](https://github.com/sborms/futsalfriend/actions/workflows/tests.yaml)
[![Scraper](https://github.com/sborms/futsalfriend/actions/workflows/scraper.yaml/badge.svg)](https://github.com/sborms/futsalfriend/actions/workflows/scraper.yaml)

For those in love with futsal as a way to enjoy sports and to maximize time with friends.

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ sqlalchemy
geopy
langchain
openai
hugchat
# hugchat
23 changes: 0 additions & 23 deletions scraper/config/config_for_testing.json

This file was deleted.

1 change: 0 additions & 1 deletion scraper/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ def store(config, dict_tables, log_main):
log.info(f"Running script from {DIR_SCRIPT}")

config = DataStorage.load_json(f"{DIR_SCRIPT}/config/config.json")
# config = DataStorage.load_json(f"{DIR_SCRIPT}/config/config_for_testing.json")
log.info("Config loaded")

dict_tables = scrape(config, log_main=log)
Expand Down

0 comments on commit 7fa5e33

Please sign in to comment.