diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml new file mode 100644 index 0000000..3b7665b --- /dev/null +++ b/.github/workflows/python-test.yml @@ -0,0 +1,24 @@ +name: Python Tests + +on: + # pull_request: {} + # push: {} + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Python 3.12 + uses: actions/setup-python@v4 + with: + python-version: 3.12 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Run pytest + run: | + pip install pytest + pytest diff --git a/Projekat.py b/Projekat.py index 1c5bc44..2278a4a 100644 --- a/Projekat.py +++ b/Projekat.py @@ -17,7 +17,7 @@ while running: x, y = pygame.mouse.get_pos() for event in pygame.event.get(): - if (event.type == pygame.KEYDOWN and event.key == pygame.K_u) or event.type==pygame.QUIT: + if (event.type == pygame.KEYDOWN and event.key == pygame.K_u) or (event.type==pygame.QUIT): running = False if event.type == pygame.KEYDOWN and event.key == pygame.K_w: window_menager.add_prozor() diff --git a/__pycache__/Klase.cpython-310.pyc b/__pycache__/Klase.cpython-310.pyc deleted file mode 100644 index cada4eb..0000000 Binary files a/__pycache__/Klase.cpython-310.pyc and /dev/null differ