Skip to content

Commit

Permalink
Refactor test workflow to use custom environment setup
Browse files Browse the repository at this point in the history
  • Loading branch information
cpaniaguam committed Dec 17, 2024
1 parent bc7ff02 commit 8a20706
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,10 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Setup environment
uses: ./.github/setup-env
with:
# Install a specific version of uv.
version: "0.5.9"

- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}

- name: Install hssm
if: steps.cache.outputs.cache-hit != 'true'
run: uv sync --all-extras --dev
python-version: ${{ matrix.python-version }}

- name: Run tests and collect coverage
run: uv run pytest -n=auto --cov=. --cov-report=xml --cov-report=term-missing --exitfirst --capture=no tests/
Expand Down

0 comments on commit 8a20706

Please sign in to comment.