CI #879
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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: '0 0 * * *' # Daily “At 00:00” | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: Python (${{ matrix.python-version }}, ${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash -l {0} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ "ubuntu-latest", "macos-latest", "windows-latest"] | |
python-version: [ "3.9", "3.10", "3.11", "3.12" ] | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: environment setup | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
activate-environment: geocat_viz_build | |
channel-priority: strict | |
python-version: ${{ matrix.python-version }} | |
channels: conda-forge | |
environment-file: build_envs/environment.yml | |
- name: Install geocat-viz | |
run: | | |
python -m pip install . --no-deps | |
- name: conda list | |
run: | | |
conda list | |
- name: tests | |
run: | | |
python -m pytest | |
link-check: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: environment setup | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
activate-environment: gv-docs | |
channel-priority: strict | |
python-version: 3.9 | |
channels: conda-forge | |
environment-file: build_envs/docs.yml | |
- name: Install geocat-viz | |
run: | | |
python -m pip install . | |
- name: check conda list | |
run: | | |
conda list | |
- name: Make docs with linkcheck | |
run: | | |
cd docs | |
make linkcheck |