diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..cb195ab --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + ci: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - uses: actions/setup-python@v4 + with: + python-version: '3.11' + cache: 'pip' + + - name: Installing + run: pip install -r requirements_dev.txt + + - name: Formatting + run: black . --check diff --git a/.idea/misc.xml b/.idea/misc.xml index 5631cd5..a754f6a 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,7 @@ - + + + \ No newline at end of file diff --git a/.idea/otp-gen.iml b/.idea/otp-gen.iml index 53b0caa..0c4aab7 100644 --- a/.idea/otp-gen.iml +++ b/.idea/otp-gen.iml @@ -4,7 +4,7 @@ - + \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index c936d72..d40cd58 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,2 @@ panda3d coloredlogs -black diff --git a/requirements_dev.txt b/requirements_dev.txt new file mode 100644 index 0000000..9db4397 --- /dev/null +++ b/requirements_dev.txt @@ -0,0 +1,2 @@ +-r requirements.txt +black \ No newline at end of file