python-piped-api-client/.github/workflows/pytest.yml

29 lines
654 B
YAML
Raw Normal View History

2022-01-23 10:14:52 +00:00
name: Test with pyTest
on: [workflow_dispatch, push, pull_request]
jobs:
deploy:
runs-on: ubuntu-latest
2022-02-26 10:42:18 +00:00
strategy:
matrix:
python-version: ['3.10']
2022-01-23 10:14:52 +00:00
steps:
- uses: actions/checkout@v2
2022-02-26 10:42:18 +00:00
- name: Set up Python ${{ matrix.python-version }}
2022-01-23 10:14:52 +00:00
uses: actions/setup-python@v2
with:
2022-02-26 10:42:18 +00:00
python-version: ${{ matrix.python-version }}
2022-01-23 10:14:52 +00:00
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pyTest
run: |
2022-02-26 10:37:19 +00:00
python -m pytest -v