This repository has been archived by the owner on Dec 10, 2024. It is now read-only.
solver work #720
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
name: pytest | |
on: | |
push: | |
jobs: | |
pytest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
#cache: 'hatch' | |
- name: Install dependencies | |
run: | | |
python -m pip install hatch --upgrade pip | |
hatch env create test | |
- name: Lint with Ruff | |
run: hatch run ruff check --output-format=github . | |
#continue-on-error: true | |
- name: Setup cmake | |
uses: jwlawson/actions-setup-cmake@v2 | |
- name: Run pytest | |
run: hatch run test:pytest | |
#- name: Upload pytest test results | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: pytest-results-${{ matrix.python-version }} | |
# path: junit/test-results-${{ matrix.python-version }}.xml | |
# # Use always() to always run this step to publish test results when there are test failures | |
# if: ${{ always() }} |