Skip to content

[#1032] remove apt #702

[#1032] remove apt

[#1032] remove apt #702

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