Skip to content

[TRI-31012] Fix Python Build Failures #57

[TRI-31012] Fix Python Build Failures

[TRI-31012] Fix Python Build Failures #57

Workflow file for this run

name: Testing - main
on: [pull_request]
jobs:
build:
strategy:
max-parallel: 20
matrix:
os: [
ubuntu-latest,
macos-latest,
windows-latest
]
python-version: [3.9]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- 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
pip install -e .[tests,m3gnet]
pip install -r requirements.txt
- name: check maggma version
run: pip show maggma
- name: pytest
env:
MPLBACKEND: "Agg"
PMG_MAPI_KEY: "fake_api_key"
run: |
pytest tests/unit_tests --color=yes --cov=piro --cov-report html:coverage_reports
- name: Coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
coveralls --service=github