main.yml (647B)
1 name: Test Python Application 2 3 on: 4 push: 5 branches: [ master ] 6 pull_request: 7 branches: [ master ] 8 9 jobs: 10 test: 11 runs-on: ubuntu-latest 12 13 steps: 14 - uses: actions/checkout@v4 15 16 - name: Set up Python 17 uses: actions/setup-python@v5 18 with: 19 python-version: '3.12' 20 cache: 'pip' 21 22 - name: Install dependencies 23 run: pip install -r requirements.txt 24 25 - name: Install test dependencies 26 run: pip install -r requirements-dev.txt 27 28 - name: Install playwright browsers 29 run: playwright install 30 31 - name: Run tests with pytest 32 run: python -m pytest