Github pages fix #1886
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: build | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- ready_for_review | |
jobs: | |
build_single: | |
name: Build | |
if: github.event.pull_request.draft == true | |
runs-on: 'ubuntu-latest' | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/install-python-and-package | |
with: | |
python-version: '3.11' | |
- name: Run unit tests | |
run: pytest -v | |
- name: Verify that we can build the package | |
run: python setup.py sdist bdist_wheel | |
build_all: | |
name: Build for (${{ matrix.python-version }}, ${{ matrix.os }}) | |
if: github.event.pull_request.draft == false | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] | |
python-version: ['3.9', '3.11'] | |
exclude: | |
# already tested in build_single job | |
- python-version: 3.11 | |
os: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/install-python-and-package | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Run unit tests | |
run: python -m pytest -v | |
#- name: Verify that we can build the package | |
# run: python setup.py sdist bdist_wheel | |
test_downloader: | |
name: Test file downloader | |
if: github.event.pull_request.draft == false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/install-python-and-package | |
with: | |
python-version: '3.11' | |
extras-require: dev | |
- name: Run downloader test | |
run: python -m pytest -v --downloader -k downloader | |
test_dashboard: | |
name: Test dashboard | |
if: always() | |
#github.event.pull_request.draft == false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/install-python-and-package | |
with: | |
python-version: '3.11' | |
extras-require: dev,dashboard | |
- name: Ensure browser is installed | |
run: python -m playwright install chromium | |
- name: Test dashboard | |
run: pytest -v -m dashboard --dashboard |