Test lumos automatically on multiple versions of python #13
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
name: Lumos Testing | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
paths: | |
- '**.py' | |
- '**.yaml' | |
jobs: | |
Lumos-Testing-on-Linux: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
max-parallel: 2 | |
matrix: | |
python-version: ["3.8", "3.9","3.10"] | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r ./requirements.txt | |
- name: Install lumos as a development package | |
run: | | |
python setup.py develop | |
- name: Install pytest | |
run: | | |
pip install pytest | |
- name: Run tests with pytest | |
run: | | |
pytest -vs | |
Lumos-Testing-on-Windows: | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false | |
max-parallel: 2 | |
matrix: | |
python-version: ["3.8", "3.9","3.10"] | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install lumos dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r .\requirements.txt | |
- name: Install lumos as a development package | |
run: | | |
python setup.py develop | |
- name: Install pytest | |
run: | | |
pip install pytest | |
- name: Run tests with pytest | |
run: | | |
pytest -vs |