Skip to content

Commit

Permalink
ci: update pipeline (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsmrynk authored Apr 14, 2024
1 parent f03d36b commit b5b7b5d
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 6 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,25 @@ jobs:

- name: Install requirements
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pip setuptools
pip install -r dev/requirements.txt
- name: Test with pytest
run: |
pytest --cov=./ --cov-report=xml
- name: Upload coverage report to codecov
if: matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Lint with ruff
if: matrix.os == 'ubuntu-latest'
run: |
ruff check src
ruff check src
- name: Check dependencies with pip-audit
if: matrix.os == 'ubuntu-latest'
run: |
pip-audit
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
[![CI](https://img.shields.io/github/actions/workflow/status/mrsmrynk/aviary/ci.yaml?branch=main&color=black&label=CI&logo=GitHub)](https://github.com/mrsmrynk/aviary/actions/workflows/ci.yaml)
[![Coverage](https://img.shields.io/codecov/c/github/mrsmrynk/aviary/main?color=black&label=Coverage&logo=codecov&logoColor=white)](https://app.codecov.io/gh/mrsmrynk/aviary)

</div>
</div>
15 changes: 15 additions & 0 deletions dev/pre_commit_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.7
hooks:
- id: ruff
4 changes: 3 additions & 1 deletion dev/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
geopandas==0.14.3
numpy==1.26.4
pip-audit==2.7.2
pre-commit==3.7.0
pyproj==3.6.1
pytest==8.1.1
pytest-cov==5.0.0
ruff==0.3.7
shapely==2.0.3
shapely==2.0.3
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ extend-select = [
"C901",
"E",
"W",
]
]
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
geopandas==0.14.3
numpy==1.26.4
pyproj==3.6.1
shapely==2.0.3
shapely==2.0.3

0 comments on commit b5b7b5d

Please sign in to comment.