tartrazine/.github/workflows/pyTest.yml
Alex Bezzubov 064b6fca57 ci: bump python and it's actions
* remove 3.7, add 3.10
 * use the latest versions of actions
2024-05-11 19:52:17 +02:00

29 lines
869 B
YAML

on: [push, pull_request]
name: Python Tests
jobs:
test:
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r python/requirements.txt
if [ -f python/requirements.dev.txt ]; then pip install -r python/requirements.dev.txt; fi
- name: Build and install package
run: |
pip install setuptools wheel
pip -v install --no-use-pep517 -e python
- name: Test
run: |
pytest python/