Skip to content

(misc) updated testing workflow #57

(misc) updated testing workflow

(misc) updated testing workflow #57

Workflow file for this run

name: Cross-Platform Tests
on:
push:
paths:
- 'materialsmap/**'
- '.github/workflows/lastCommit.yml'
workflow_dispatch:
jobs:
tests:
strategy:
matrix:
python-version: ["3.8", "3.9"]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: 'pyproject.toml'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flask pytest pytest-cov
python -m pip install -e .
- name: Test with pytest
run: |
pytest --cov=materialsmap --cov-report=xml