Skip to content

Merge pull request #239 from scipp/ditch-conda-incubator #764

Merge pull request #239 from scipp/ditch-conda-incubator

Merge pull request #239 from scipp/ditch-conda-incubator #764

Workflow file for this run

# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2023 Scipp contributors (https://github.com/scipp)
name: CI
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_number || github.ref }}
cancel-in-progress: true # cancel jobs from previous push
jobs:
formatting:
name: Formatting and static analysis
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.10'
- run: python -m pip install --upgrade pip
- run: python -m pip install -r requirements/ci.txt
- run: tox -e static
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Apply automatic formatting
tests:
name: Tests
needs: formatting
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.10'
- run: sudo apt install --yes graphviz graphviz-dev
- run: python -m pip install --upgrade pip
- run: python -m pip install -r requirements/ci.txt
- run: tox
docs:
needs: tests
uses: ./.github/workflows/docs.yml
with:
publish: false