Skip to content

Commit

Permalink
Update run-pytest action
Browse files Browse the repository at this point in the history
  • Loading branch information
janbridley committed Jul 23, 2024
1 parent 05163d3 commit 228c09f
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/run-pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,20 @@ jobs:
- os: 'macos-latest'
python: '3.12'
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
with:
submodules: "recursive"
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
python-version: ${{ matrix.python-version }}
- name: Set up Python environment
uses: glotzerlab/workflows/setup-uv@3573ddaebf3290e00bfb150b82a46412192a61d3
with:
python-version: ${{ matrix.python }}
- name: Update pip/build packages
lockfile: ".github/requirements${{matrix.python-version}}.txt"
- name: Install package
run: |
pip install setuptools --upgrade
- name: Install dependencies
run: |
pip install -r .github/workflows/requirements-test.txt
- name: Install the package
run: |
pip install -e .
python --version
uv pip install . --no-build-isolation --no-deps --system -v
- name: Test with pytest
run: |
python -m pytest -v
python -m pytest -v -n auto

0 comments on commit 228c09f

Please sign in to comment.