-
Notifications
You must be signed in to change notification settings - Fork 5
45 lines (40 loc) · 1.42 KB
/
test-linux.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# 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