diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml new file mode 100644 index 0000000..4110de2 --- /dev/null +++ b/.github/workflows/python-package.yml @@ -0,0 +1,34 @@ +name: tests + +on: + push: + branches: [ "*" ] + pull_request: + branches: [ "*" ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.7, 3.8, 3.9, "3.10", "3.11"] + + steps: + - 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 setuptools wheel pytest mypy types-requests + python -m pip install -r requirements.txt + - name: Run mypy + run: | + mypy src/straeto/*.py + - name: Test with pytest + run: | + python setup.py develop + python -m pytest + diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..8a27107 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +requests>=2.20