Skip to content

Merge pull request #3 from duplocloud/commander #47

Merge pull request #3 from duplocloud/commander

Merge pull request #3 from duplocloud/commander #47

Workflow file for this run

name: Python Test
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
# was unable to biuld with: 3.7, 3.8, or 3.9
python-version: ["3.10", "3.11"]
steps:
# checkout code
- name: Checkout Code
uses: actions/checkout@v3
# install python
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# install the project
- name: Install dependencies
run: |
pip install .
pip install .[dev]
# do linting
- name: Lint with ruff
run: |
# stop the build if there are Python syntax errors or undefined names
# ruff --format=github --select=E9,F63,F7,F82 --target-version=py37 .
ruff ./src
# run the tests
- name: Test with pytest
run: |
pytest src