Skip to content

Commit

Permalink
chores: remove france5
Browse files Browse the repository at this point in the history
  • Loading branch information
polomarcus committed Apr 22, 2024
1 parent fd81cb2 commit 13ca6c1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/deploy-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ jobs:
git add pyproject.toml
git commit -m "[no ci]: $PROJECT_VERSION bumping version"
git push origin main
docker_build_push:
runs-on: ubuntu-latest
needs: build
steps:
- name: Login to Scaleway Container Registry
uses: docker/login-action@v3
with:
Expand All @@ -60,11 +65,10 @@ jobs:
- name: Push ingest_to_db Image
run: docker push ${{ secrets.CONTAINER_REGISTRY_ENDPOINT }}/ingest_to_db

# - name: Build streamlit image
# run: docker build -f Dockerfile_streamlit . -t ${{ secrets.CONTAINER_REGISTRY_ENDPOINT }}/streamlit
# - name: Push streamlit Image
# run: docker push ${{ secrets.CONTAINER_REGISTRY_ENDPOINT }}/streamlit

scaleway_job_update:
runs-on: ubuntu-latest
needs: docker_build_push
steps:
- name: update scaleway job definition with version mediatree_import
uses: jawher/[email protected]
env:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ services:
# UPDATE: "true" # to batch update PG
# START_OFFSET: 100 # to batch update PG from a offset
# START_DATE: 1704576615 # to test batch import
# CHANNEL : france-info # to reimport only one channel
CHANNEL : france-info # to reimport only one channel
MEDIATREE_USER : /run/secrets/username_api
MEDIATREE_PASSWORD: /run/secrets/pwd_api
MEDIATREE_AUTH_URL: https://keywords.mediatree.fr/api/auth/token/
Expand Down
2 changes: 1 addition & 1 deletion quotaclimat/data_processing/mediatree/api_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def get_channels():
channels = [default_channel]
else: #prod - all channels
logging.warning("All channels are used")
return ["tf1", "france2", "fr3-idf", "france5", "m6", "arte", "d8", "bfmtv", "lci", "franceinfotv", "itele",
return ["tf1", "france2", "fr3-idf", "m6", "arte", "d8", "bfmtv", "lci", "franceinfotv", "itele",
"europe1", "france-culture", "france-inter", "sud-radio", "rmc", "rtl", "france24", "france-info", "rfi"]

return channels
Expand Down
2 changes: 1 addition & 1 deletion test/sitemap/test_mediatree.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def test_get_channels():
if(os.environ.get("ENV") == "docker"):
assert get_channels() == ["france2"] # default for docker compose config
else:
assert get_channels() == ["tf1", "france2", "fr3-idf", "france5", "m6", "arte", "d8", "bfmtv", "lci", "franceinfotv", "itele",
assert get_channels() == ["tf1", "france2", "fr3-idf", "m6", "arte", "d8", "bfmtv", "lci", "franceinfotv", "itele",
"europe1", "france-culture", "france-inter", "sud-radio", "rmc", "rtl", "france24", "france-info", "rfi"]

def test_save_to_pg_keyword():
Expand Down

1 comment on commit 13ca6c1

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
postgres
   insert_data.py44784%36–38, 57–59, 64
   insert_existing_data_example.py19384%25–27
postgres/schemas
   models.py1101586%101–108, 119–120, 152–162
quotaclimat/data_ingestion
   scrap_sitemap.py1341787%27–28, 33–34, 66–71, 95–97, 138–140, 202, 223–228
quotaclimat/data_ingestion/ingest_db
   ingest_sitemap_in_db.py553733%21–42, 45–58, 62–73
quotaclimat/data_ingestion/scrap_html
   scrap_description_article.py36392%19–20, 32
quotaclimat/data_processing/mediatree
   api_import.py17910641%42–46, 51–59, 63–66, 72, 75–102, 108–123, 128–130, 145–157, 161–164, 168–174, 185–197, 200–204, 210, 234–235, 239, 243–262, 265–267
   channel_program.py681085%14–16, 27–29, 33–34, 48, 77
   config.py15287%7, 16
   detect_keywords.py192498%197, 250–252
   utils.py662267%19, 30–54, 57, 76–77
quotaclimat/utils
   healthcheck_config.py291452%22–24, 27–38
   logger.py241154%22–24, 28–37
   sentry.py10280%21–22
TOTAL104325376% 

Tests Skipped Failures Errors Time
76 0 💤 0 ❌ 0 🔥 1m 25s ⏱️

Please sign in to comment.