Add slider_puzzle with tests #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Python Test | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Code auschecken | |
| uses: actions/checkout@v4 | |
| - name: Python installieren | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.14' | |
| - name: Dependencies installieren | |
| run: | | |
| pip install --upgrade pip | |
| pip install pytest | |
| if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
| - name: Add project to PYTHONPATH | |
| run: echo "PYTHONPATH=$PWD" >> $GITHUB_ENV | |
| - name: Tests ausführen | |
| run: pytest -v |