-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace requirements.lock with uv.lock
Similar setup as in aiida-core
- Loading branch information
1 parent
73f14e3
commit 26f6837
Showing
6 changed files
with
1,809 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,13 +28,20 @@ jobs: | |
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.8 | ||
- name: Install dependencies (including dev dependencies at frozen version) | ||
- name: Set up uv | ||
uses: astral-sh/[email protected] | ||
with: | ||
version: 0.5.22 | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies from uv lock | ||
if: ${{ inputs.from-lock == 'true' }} | ||
# NOTE: We're asserting that the lockfile is up to date | ||
run: uv sync --locked --extra optionaltests | ||
shell: bash | ||
- name: Install disk-objectstore | ||
# I'm using pip install -e to make sure that the coverage properly traces the runs | ||
# also of the concurrent tests (maybe we can achieve this differently) | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -e .[optionaltests] | ||
pip install -r requirements.lock | ||
run: uv pip install -e .[optionaltests] | ||
- name: Run benchmarks | ||
run: pytest --benchmark-only --benchmark-json output.json | ||
- name: Store benchmark result | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,13 +39,21 @@ jobs: | |
run: | | ||
.github/workflows/setup-ssh-localhost.sh | ||
ssh -v localhost | ||
- name: Install dependencies (including dev dependencies at frozen version) | ||
- name: Set up uv | ||
uses: astral-sh/[email protected] | ||
with: | ||
version: 0.5.22 | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies from uv lock | ||
if: ${{ inputs.from-lock == 'true' }} | ||
# NOTE: We're asserting that the lockfile is up to date | ||
run: uv sync --locked --extra progressbar --extra optionaltests | ||
shell: bash | ||
- name: Install disk-objectstore | ||
# I'm using pip install -e to make sure that the coverage properly traces the runs | ||
# also of the concurrent tests (maybe we can achieve this differently) | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -e .[progressbar,optionaltests] | ||
pip install -r requirements.lock | ||
run: uv pip install -e .[progressbar, optionaltests] | ||
- name: Test with pytest | ||
# No need to run the benchmarks, they will run in a different workflow | ||
# Also, run in very verbose mode so if there is an error we get a complete diff | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,13 +30,20 @@ jobs: | |
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies (including dev dependencies at frozen version) | ||
- name: Set up uv | ||
uses: astral-sh/[email protected] | ||
with: | ||
version: 0.5.22 | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies from uv lock | ||
if: ${{ inputs.from-lock == 'true' }} | ||
# NOTE: We're asserting that the lockfile is up to date | ||
run: uv sync --locked --extra optionaltests | ||
shell: bash | ||
- name: Install disk-objectstore | ||
# I'm using pip install -e to make sure that the coverage properly traces the runs | ||
# also of the concurrent tests (maybe we can achieve this differently) | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -e .[optionaltests] | ||
pip install -r requirements.lock | ||
run: uv pip install -e .[optionaltests] | ||
- name: Test with pytest | ||
# Run only the concurrency tests, and repeating them 5 times to increase the chance that, if there is an issue | ||
# only happening rarely, we notice it | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.