Skip to content

Fix/113 (#114)

Fix/113 (#114) #110

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python application
on:
push:
branches: [ "develop", "main", "master" ]
pull_request:
branches: [ "develop", "main", "master" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
python-version: ["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 dependencies
run: |
python -m pip install --upgrade pip
python -m pip install wheel
python -m pip install pytest
python -m pip install -r requirements.txt
- name: Test with pytest
run: |
python -m pytest
- name: Test to build
run: |
python setup.py install
- name: Test to build docs
run: |
cd docs && make html
- name: Test to run package
run: |
mkdir test_tmp && cd test_tmp && python -c "import flopt"