Skip to content

make .env in tests

make .env in tests #46

Workflow file for this run

name: Python package tests
on:
push:
schedule:
- cron: "0 12 * * 1"
jobs:
call-run-python-tests:
uses: openclimatefix/.github/.github/workflows/python-test.yml@main
with:
# pytest-cov looks at this folder
pytest_cov_dir: "quartz_solar_forecast"
os_list: '["ubuntu-latest"]'
python-version: "['3.10','3.11']"
extra_commands: echo "HF_TOKEN=${{ secrets.HF_TOKEN }}" > .env

Check failure on line 15 in .github/workflows/pytest.yaml

View workflow run for this annotation

GitHub Actions / Python package tests

Invalid workflow file

The workflow is not valid. .github/workflows/pytest.yaml (Line: 15, Col: 23): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.HF_TOKEN