Skip to content
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
6 changes: 5 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
.git
.venv
cloudbuild

tests/test_init_project.py

**/__pycache__/
**/*.pyc
**/*.pyo
**/*.pyd
.pytest_cache/
.pytest_cache/
1 change: 0 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
max-line-length = 99
exclude =
.venv

13 changes: 7 additions & 6 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,13 @@ jobs:
cache: 'pip'
# cache option make the step fail if you don´t have requirements.txt or pyproject.toml on root.
# https://github.com/actions/setup-python/issues/807.

- name: Install UV
run: make uv

- name: Create virtual environment
run: uv venv $VENV
# make uv pins .python-version to 3.12; --python makes the venv use the matrix version.
run: uv venv --python ${{ matrix.python-version }} $VENV

- name: Install package with test dependencies
run: |
Expand All @@ -62,7 +63,7 @@ jobs:
make test

- name: Upload coverage reports to Codecov
if: (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop') && matrix.python-version == '3.12'
if: github.ref == 'refs/heads/main'
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -71,12 +72,12 @@ jobs:
name: tests - Python 3.12 on Docker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6

- name: Build docker image
run: make docker-build

- name: Run tests
run: make docker-test
10 changes: 0 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -158,18 +158,8 @@ cython_debug/
#OSX
.DS_Store

#Jupyter
.ipynb

#terraform
.terraform
.terraform.lock.hcl
terraform.tfstate
terraform.tfstate.backup

# project stuff
scripts/config.sh
test/

# UV
.python-version
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
repos:

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: check-ast
- id: check-added-large-files
Expand All @@ -15,6 +15,7 @@ repos:
args: [--pytest-test-first]
- id: mixed-line-ending
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]

- repo: local
hooks:
Expand Down
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12
Loading
Loading