Skip to content

Commit

Permalink
Merge pull request #8 from VishwamAI/update-artifact-actions
Browse files Browse the repository at this point in the history
Update artifact actions from v3 to v4
  • Loading branch information
kasinadhsarma authored Nov 7, 2024
2 parents 1d7508f + abd369d commit 6c6faf8
Show file tree
Hide file tree
Showing 10 changed files with 205 additions and 608 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,25 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
# Install package in development mode with all dependencies
pip install -e ".[dev]"
# Verify sympy version
python -c "import sympy; print(f'Installed sympy version: {sympy.__version__}')"
# Verify our compatibility layer is available
python -c "from alphamath.compat import base_solution_linear; print('Compatibility layer available')"
# Get mathematics_dataset package location
SITE_PACKAGES=$(python -c "import site; print(site.getsitepackages()[0])")
# Apply patch to mathematics_dataset
cd $SITE_PACKAGES && \
patch -p1 < $GITHUB_WORKSPACE/patches/mathematics_dataset_sympy_compat.patch || exit 1
cd $GITHUB_WORKSPACE

- name: Run tests
run: |
pytest
python -m pytest

- name: Upload test results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-results
path: pytest-results.xml
Loading

0 comments on commit 6c6faf8

Please sign in to comment.