[#1032] Removed data 2 #708
Workflow file for this run
This file contains hidden or 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: Ubuntu, py 3.11, pip | |
| on: | |
| push: | |
| branches-ignore: | |
| - master | |
| - devel | |
| - deploy-test | |
| pull_request: | |
| branches-ignore: | |
| - master | |
| - devel | |
| - deploy-test | |
| jobs: | |
| build-linux: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| max-parallel: 5 | |
| steps: | |
| # Install latex | |
| - name: Install latex for matplotlib | |
| run: | | |
| which sudo | |
| # sudo apt update | |
| # sudo apt-get install texlive texlive-latex-extra texlive-fonts-recommended dvipng cm-super | |
| # pip install latex | |
| # NOT NEEDED: can be installed with pip | |
| # install Meson for packaging | |
| #- name: Install Meson for packaging | |
| #run: | | |
| #sudo apt install build-essential | |
| #sudo apt install meson ninja-build | |
| # git checkout | |
| - uses: actions/checkout@v5 | |
| with: | |
| # https://github.com/marketplace/actions/checkout#usage | |
| fetch-depth: 0 # to fetch all history from all branches | |
| fetch-tags: true | |
| # Install uv | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| python-version: 3.11 | |
| # Build dist | |
| - name: Build the project | |
| run: | | |
| uv build | |
| # Create and activate env | |
| - name: Create and activate env | |
| run: | | |
| uv venv venv --python 3.11 | |
| source .venv/bin/activate | |
| which python | |
| # Install library | |
| - name: Install the project | |
| run: | | |
| uv pip install ./dist/*.whl | |
| which pytest | |
| # Run tests | |
| - name: Test with pytest and coverage | |
| run: | | |
| cd ./dist/ | |
| which pytest | |
| which python | |
| uv pip list | grep tofu | |
| python -c "import tofu as tf; print(tf.__file__)" | |
| pytest --pyargs tofu.tests -xv --durations=10 |