Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make CI lint once #21

Merged
merged 1 commit into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:
perastov marked this conversation as resolved.
Show resolved Hide resolved
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
neexee marked this conversation as resolved.
Show resolved Hide resolved