Skip to content

Update pytest.yml

Update pytest.yml #7

Workflow file for this run

name: Python tests
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: "3.9"
- name: Install dependencies
run: |
sudo apt-get install sagemath
sage -pip install pytest
- name: Test with pytest
run: |
python -m site
sage -python -m site
python -m site --user-site
sage -python -m site --user-site
pip list
sage -pip list
pip list --user
sage -pip list --user
export DOT_SAGE="$HOME/.sage"
PYTHONPATH="$DOT_SAGE/local/lib/python3.10/site-packages" $DOT_SAGE/local/bin/pytest