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
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[flake8]
select = F401, F841
29 changes: 29 additions & 0 deletions .github/workflows/flake8_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# .github/workflows/flake8_check.yml
name: Lint Check

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
push:
branches: [main]
jobs:
flake8-lint:
name: Run Flake8 Lint
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12" # or whichever version you use

- name: Install Flake8 and plugins
run: |
python -m pip install --upgrade pip
pip install flake8 flake8-bugbear flake8-comprehensions flake8-builtins

- name: Run Flake8
run: flake8 .
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
# .github/workflows/test-install.yml
name: Test PyProject Install
# .github/workflows/unit_tests.yml
name: CPU Unit Tests

on:
pull_request:
branches: [main]
types: [opened, synchronize, reopened, ready_for_review]

jobs:
test-install:
# Only run on non-draft PRs
if: github.event.pull_request.draft == false
name: CPU Unit Tests
runs-on: ubuntu-latest

strategy:
matrix:
python-version: [3.11]
python-version: [3.12]

steps:
- name: Checkout code
Expand All @@ -35,3 +38,7 @@ jobs:
- name: Verify package import
run: |
python -c "import provada"

- name: Run CPU unit tests
run: |
pytest --no-wandb --skip-gpu
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
**results
**tmp_
**logs
**wandb
*.csv
*provada/components/locks
*.vscode
*.mov
*.gif
*.mp4
analyze/output/*

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down Expand Up @@ -163,4 +171,4 @@ cython_debug/
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
#.idea/
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

Loading