Baseline tests, basically just parts of utils right now

This commit is contained in:
Devon R
2022-03-01 06:02:36 +00:00
committed by GitHub
parent 3c6279b947
commit 28c7cdca99
5 changed files with 320 additions and 0 deletions

35
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,35 @@
name: test
on:
push:
pull_request:
types: [ opened, edited ]
jobs:
pytest:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ '3.8', '3.x' ]
name: pytest ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up CPython ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel "coverage[toml]" pytest pytest-asyncio pytest-cov pytest-mock
pip install -U -r requirements.txt
- name: Run tests
shell: bash
run: |
PYTHONPATH="$(pwd)" pytest -vs --cov=discord --cov-report term-missing:skip-covered