Hurst generator #117
This file contains hidden or 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: Run Tests | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| python-version: ["3.11"] | |
| fail-fast: false | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies on MacOS | |
| if: matrix.os == 'macos-latest' | |
| shell: bash | |
| run: | | |
| /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
| brew install numpy scipy | |
| python -m pip install --upgrade pip wheel setuptools | |
| pip install -r requirements.txt | |
| pip install pytest | |
| - name: Install dependencies | |
| if: matrix.os != 'macos-latest' | |
| shell: bash | |
| run: | | |
| python -m pip install --upgrade pip wheel | |
| pip install -r requirements.txt | |
| pip install pytest | |
| - name: Install FluctuationAnalysisTools | |
| shell: bash | |
| run: | | |
| pip install . | |
| - name: Run tests | |
| run: | | |
| pytest tests/ | |
| build-wheels: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| python-version: ["3.11"] | |
| fail-fast: false | |
| runs-on: ${{ matrix.os }} | |
| needs: test | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install build dependencies | |
| run: | | |
| python -m pip install --upgrade pip setuptools wheel build | |
| - name: Build wheels | |
| run: | | |
| python -m build --wheel --outdir wheelhouse | |
| - name: Upload wheels as artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: fluctuation-analysis-tools-${{ matrix.os }}-${{ matrix.python-version }} | |
| path: ./wheelhouse/*.whl |