CI is failing

Open
#39 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
ci-cd, testing

Research direction

Run tox -p and inspect tests/test_cli.py::test_demo_configuration alongside src/deploy_tools/demo_configuration/. Compare the parallel tox actions with the successful pytest tests run; done means the test passes under tox -p without an unexpected __pycache__ or .pyc file in the configuration directory.

Written by the indexing model from the issue text.

Description

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
Dominant language
Python
Stars
0
Forks
0
Avg merge
2d 3h
Merged PRs (30d)
8

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DiamondLightSource/deploy-tools

All issues in DiamondLightSource/deploy-tools

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.