Update __init__.py #185
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: McStasScript unit tests on OS X | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
matrix: | |
python-version: [3.7, 3.8, 3.9] | |
runs-on: macos-latest | |
steps: | |
- name: Temporary developer McStasScript checkout | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ env.BRANCH }} | |
path: mcstasscript | |
- name: Temporary developer libpyvinyl checkout | |
uses: actions/checkout@v2 | |
with: | |
repository: PaNOSC-ViNYL/libpyvinyl | |
ref: master | |
path: libpyvinyl | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies (libpyvinyl) | |
run: | | |
cd libpyvinyl | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install -e . | |
pip install pytest | |
- name: Install dependencies (mcstasscript) | |
run: | | |
cd mcstasscript | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install -e . | |
pip install pytest | |
- name: Show file structure | |
run: find . | |
- name: Run unit tests | |
run: python -m pytest mcstasscript/mcstasscript/tests/ |