Initial upload: README, CI workflow, gitignore
Some checks failed
CI / test (push) Has been cancelled
Some checks failed
CI / test (push) Has been cancelled
This commit is contained in:
@@ -2,9 +2,9 @@ name: CI
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main, master]
|
branches: [main]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main, master]
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
@@ -16,19 +16,21 @@ jobs:
|
|||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
cache: 'pip'
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
pip install -e ".[dev]"
|
pip install -e ".[dev]"
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: pytest tests/ -v --tb=short
|
||||||
pytest tests/ -v
|
|
||||||
|
|
||||||
- name: Upload coverage
|
- name: Run linting
|
||||||
uses: codecov/codecov-action@v3
|
run: |
|
||||||
with:
|
pip install ruff
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
ruff check .
|
||||||
files: ./coverage.xml
|
|
||||||
fail_ci_if_error: false
|
- name: Check types
|
||||||
|
run: |
|
||||||
|
pip install mypy
|
||||||
|
mypy config_converter/
|
||||||
|
|||||||
Reference in New Issue
Block a user