Skip to content

Commit

Permalink
simplify CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Jan 2, 2025
1 parent 2961154 commit 0081feb
Showing 1 changed file with 4 additions and 22 deletions.
26 changes: 4 additions & 22 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,9 @@ name: Continuous Integration
on: push

jobs:
test:
name: ${{ matrix.task }}
lint:
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.10
- name: linting
if: matrix.task == 'linting'
shell: bash
run: |
pip install --upgrade black flake8 isort nbqa
conda install -c conda-forge shellcheck
make lint
all-successful:
# https://github.community/t/is-it-possible-to-require-all-github-actions-tasks-to-pass-without-enumerating-them/117957/4?u=graingert
runs-on: ubuntu-latest
needs: [test]
steps:
- name: Note that all tests succeeded
run: echo "🎉"
- uses: actions/checkout@v4
- uses: pre-commit/[email protected]

0 comments on commit 0081feb

Please sign in to comment.