Update pre-commit.yml #1194
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GlobalChem API | |
on: [pull_request, push, workflow_dispatch] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: true | |
matrix: | |
os: ["ubuntu-latest", "windows-latest", "macos-latest"] | |
python-version: ["3.7", "3.8", "3.9"] | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v2 | |
- name: Setup python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: x64 | |
- name: Install | |
run: | | |
python global_chem/setup.py install | |
pip install python-coveralls | |
pip install coveralls | |
pip install coverage==4.5.4 | |
pip install nose | |
- name: Run GlobalChem tests | |
env: | |
GITHUB_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
run: | | |
cd global_chem | |
python -m nose --verbose --with-coverage -s -w tests/ |