Skip to content

test-linux

test-linux #81

Workflow file for this run

# This workflow will install fractalshades, and run tests with a variety of Python versions
name: test-linux
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install GMP MPFR MPC needed for gmpy2
run: |
sudo apt-get install libgmp-dev
sudo apt-get install libmpfr-dev
sudo apt-get install libmpc-dev
- name: Install build & test dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade build
python3 -m pip install pytest
- name: install Fractalshades
run: |
# Step 1 build
python3 -m build
# Step 2 install
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
python3 -m pip install fractalshades --user --force-reinstall --no-deps --no-index --find-links dist
# Note: an alternative install strategy would be:
# python -m pip install git+https://github.com/${{ github.repository }}.git@${{ github.sha }}
- name: Test with pytest
run: |
python3 run_tests.py