Skip to content

Commit

Permalink
Make CI lint once
Browse files Browse the repository at this point in the history
  • Loading branch information
slowaner committed Nov 13, 2023
1 parent e375c45 commit 4cab690
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 48 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/docs-branch.yaml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/lint-branch.yaml

This file was deleted.

62 changes: 62 additions & 0 deletions .github/workflows/validate-branch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Validate
on: [ push ]

jobs:
lint:
strategy:
fail-fast: false
matrix:
python-version: [ '3.8' ] # use minimum supported version
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pip install poetry
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
- name: Install dependencies
run: poetry install
- name: Run lint
run: make lint
build-docs:
strategy:
fail-fast: false
matrix:
python-version: [ '3.11' ]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: pip install -r docs/requirements.txt
- name: Run building docs
run: make build-docs
test:
strategy:
fail-fast: false
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pip install poetry
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
- name: Install dependencies
run: poetry install
- name: Run test
run: make test

0 comments on commit 4cab690

Please sign in to comment.