You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
730 B
30 lines
730 B
name: Test
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
types: [ opened, synchronize ]
|
|
|
|
jobs:
|
|
pytest:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up CPython 3.8
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: '3.8'
|
|
|
|
- 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
|
|
|