Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pedro-psb/history-runner
Quickly run any command across different git tags.
https://github.com/pedro-psb/history-runner
Last synced: about 2 months ago
JSON representation
Quickly run any command across different git tags.
- Host: GitHub
- URL: https://github.com/pedro-psb/history-runner
- Owner: pedro-psb
- Created: 2023-09-19T17:49:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-04T18:08:29.000Z (over 1 year ago)
- Last Synced: 2024-10-13T09:44:35.964Z (3 months ago)
- Language: Python
- Size: 10.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# history-runner
Quick run a command across different git tags of package.
## Usage
```bash
hrun run --tags --
hrun run --tags --case-dir --
```### Multiple versions
```bash
hrun run . --tags 3.1.12 3.2.2 -- python app.py
hrun run . --tags 3.1.12 3.2.2 -- time python app.py
hrun run . --tags 3.1.12 3.2.2 -- python -m timeit app.py
```### Multiple cases
To run multiple cases at once, you may create a collection of case directories,
each one containing a single entrypoint file to be executed:```bash
$ tree
mycases/
case_a/
app.py
additional.toml
case_b/
app.py
$ hrun run 3.1.12 3.2.2 --cases-dir cases --entrypoint app.py
Running v3.1.12 [case_a]
...
Running v3.1.12 [case_b]
...
Running v3.2.2 [case_a]
...
Running v3.2.2 [case_b]
```## Configuration
- `DATA_FOLDER`: where internal stuff goes (e.g. the managed venvs)
- `DEFAULT_CASES_DIR`: where the program will look for test cases, by default.