CI: Use ENV_FILE

Signed-off-by: Luis Garcia <git@luigi311.com>
This commit is contained in:
Luis Garcia
2025-05-18 20:21:18 +00:00
parent 544649effd
commit c76bb3b355

View File

@@ -70,40 +70,35 @@ jobs:
- name: "Test Plex" - name: "Test Plex"
run: | run: |
mv test/ci_plex.env .env ENV_FILE="test/ci_plex.env" uv run main.py
uv run main.py
uv run test/validate_ci_marklog.py --plex uv run test/validate_ci_marklog.py --plex
rm mark.log rm mark.log
- name: "Test Jellyfin" - name: "Test Jellyfin"
run: | run: |
mv test/ci_jellyfin.env .env ENV_FILE="test/ci_jellyfin.env" uv run main.py
uv run main.py
uv run test/validate_ci_marklog.py --jellyfin uv run test/validate_ci_marklog.py --jellyfin
rm mark.log rm mark.log
- name: "Test Emby" - name: "Test Emby"
run: | run: |
mv test/ci_emby.env .env ENV_FILE="test/ci_emby.env" uv run main.py
uv run main.py
uv run test/validate_ci_marklog.py --emby uv run test/validate_ci_marklog.py --emby
rm mark.log rm mark.log
- name: "Test Guids" - name: "Test Guids"
run: | run: |
mv test/ci_guids.env .env ENV_FILE="test/ci_guids.env" uv run main.py
uv run main.py
uv run test/validate_ci_marklog.py --guids uv run test/validate_ci_marklog.py --guids
rm mark.log rm mark.log
- name: "Test Locations" - name: "Test Locations"
run: | run: |
mv test/ci_locations.env .env ENV_FILE="test/ci_locations.env" uv run main.py
uv run main.py
uv run test/validate_ci_marklog.py --locations uv run test/validate_ci_marklog.py --locations
rm mark.log rm mark.log
@@ -111,11 +106,10 @@ jobs:
- name: "Test writing to the servers" - name: "Test writing to the servers"
run: | run: |
# Test writing to the servers # Test writing to the servers
mv test/ci_write.env .env ENV_FILE="test/ci_write.env" uv run main.py
uv run main.py
# Test again to test if it can handle existing data # Test again to test if it can handle existing data
uv run main.py ENV_FILE="test/ci_write.env" uv run main.py
uv run test/validate_ci_marklog.py --write uv run test/validate_ci_marklog.py --write