Update README.md #115
Workflow file for this run
This file contains 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
# 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", "3.11"] | |
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" |