Skip to content

Bump workflow to Python 3.11 #132

Bump workflow to Python 3.11

Bump workflow to Python 3.11 #132

Workflow file for this run

# Installs dependencies, runs tests with pytest, and reports code coverage.
name: Beardless Bot Unit Tests
defaults:
run:
shell: bash
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10.12
uses: actions/setup-python@v2
with:
python-version: 3.11.6
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r resources/requirements.txt
- name: Test with pytest
env:
BRAWLKEY: ${{ secrets.BRAWLKEY }}
run: |
coverage run -m pytest -Wignore
- name: View code coverage
run: |
coverage report -m