DiamondLightSource / DiamondLightSource/deploy-tools
CI is failing
- Vorherrschende Sprache
- Python
- Sterne
- 0
- Forks
- 0
- Ø Merge
- 2 T. 3 Std.
- Gemergte PRs (30 T.)
- 8
Beschreibung
This also fails if I do tox -p
For some reason PYC files are getting generated in the demo_configuration folder. One of the `tox -p` actions is generating this because if I do `rm -r src/deploy_tools/demo_configuration/__pycache__/` and `pytest tests` it works, but `tox -p` always fails as the __pycache__ folder gets re-created.
```
FAILED tests/test_cli.py::test_demo_configuration - deploy_tools.models.save_and_load.LoadError: Unexpected file in configuration directory:
/home/runner/work/deploy-tools/deploy-tools/src/deploy_tools/demo_configuration/__pycache__/make-beamlines.cpython-312.pyc
```
Beitragsleitfaden
Rechercherichtung
Führe `tox -p` aus und untersuche `tests/test_cli.py::test_demo_configuration` zusammen mit `src/deploy_tools/demo_configuration/`. Vergleiche die parallelen tox-Aktionen mit der erfolgreichen Ausführung von `pytest tests`; abgeschlossen ist die Aufgabe, wenn der Test unter `tox -p` ohne eine unerwartete `__pycache__`- oder `.pyc`-Datei im Konfigurationsverzeichnis erfolgreich ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- ci-cd, testing
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100