Add '::group::' prefix to section headers for better GH actions output #55
Workflow file for this run
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: | |
push: | |
branches: | |
- "master" | |
pull_request: | |
schedule: | |
- cron: "0 2 * * 1" # 1=monday | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
include: | |
- os: "ubuntu-latest" | |
shell_exec: "bash -c" | |
activate_cmd: "source activate" | |
- os: "windows-latest" | |
shell_exec: "cmd.exe /c" | |
activate_cmd: "activate" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup conda | |
uses: s-weigand/setup-conda@v1 | |
with: | |
update-conda: true | |
python-version: "3.10" | |
conda-channels: anaconda, conda-forge | |
- name: conda-devenv | |
run: | | |
conda install conda-devenv | |
conda-devenv | |
- name: Test | |
run: | | |
${{ matrix.shell_exec }} "${{ matrix.activate_cmd }} deps && python -m pytest source/python" | |
linting: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup conda | |
uses: s-weigand/setup-conda@v1 | |
with: | |
update-conda: true | |
python-version: "3.10" | |
conda-channels: anaconda, conda-forge | |
- name: conda-devenv | |
run: | | |
conda install conda-devenv | |
conda-devenv | |
- name: Test | |
run: | | |
source activate deps && pre-commit run --all-files --show-diff-on-failure |