Skip to content

Commit

Permalink
Reenable all unit tests; remove conda lockfile existence check
Browse files Browse the repository at this point in the history
  • Loading branch information
peytondmurray committed Jul 24, 2024
1 parent 15191c7 commit fdc5a05
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 32 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/test_conda_store_server_unit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,28 @@ concurrency:
cancel-in-progress: true

jobs:
# linting:
# runs-on: ubuntu-latest
# defaults:
# run:
# working-directory: conda-store-server
# steps:
# - name: "Checkout Repository 🛎"
# uses: actions/checkout@v4
#
# - name: "Set up Python 🐍"
# uses: actions/setup-python@v5
# with:
# python-version-file: .python-version-default
# cache: "pip"
#
# - name: "Install Dependencies 📦"
# run: |
# python -m pip install hatch
#
# - name: "Linting Checks 🧹"
# run: |
# hatch env run -e lint lint
linting:
runs-on: ubuntu-latest
defaults:
run:
working-directory: conda-store-server
steps:
- name: "Checkout Repository 🛎"
uses: actions/checkout@v4

- name: "Set up Python 🐍"
uses: actions/setup-python@v5
with:
python-version-file: .python-version-default
cache: "pip"

- name: "Install Dependencies 📦"
run: |
python -m pip install hatch
- name: "Linting Checks 🧹"
run: |
hatch env run -e lint lint
test-conda-store-server:
name: "unit-test - ${{ matrix.os}} "
Expand Down Expand Up @@ -93,13 +93,10 @@ jobs:
- name: "Unit tests ✅"
run: |
python -m pytest -svv ./tests/test_actions.py::test_install_lockfile
# python -m pytest -svv ./tests/test_app_api.py
python -m pytest -svv ./tests/test_actions.py
python -m pytest -svv ./tests/test_app_api.py
# python -m pytest -m "not extended_prefix and not user_journey" tests

- name: Setup tmate session
uses: mxschmitt/action-tmate@v3

# https://github.com/actions/runner-images/issues/1052
- name: "Windows extended prefix unit tests ✅"
shell: pwsh
Expand All @@ -111,3 +108,6 @@ jobs:
(Get-ItemProperty "HKLM:System\CurrentControlSet\Control\FileSystem").LongPathsEnabled
pytest -m "extended_prefix" tests
if: matrix.os == 'windows-latest'

- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@ def action_solve_lockfile(
else:
cuda_version = None

# Check that the lockfile exists
if not lockfile_filename.exists():
context.log.critical(f"Lockfile {lockfile_filename} does not exist.")
raise ValueError(f"Lockfile {lockfile_filename} does not exist.")

# CONDA_FLAGS is used by conda-lock in conda_solver.solve_specs_for_arch
with utils.set_environment(**{"CONDA_FLAGS": conda_flags}):
run_lock(
Expand Down

0 comments on commit fdc5a05

Please sign in to comment.