Skip to content

Test

Test #1165

Workflow file for this run

# https://github.com/actions/setup-python
name: Test
on:
schedule:
- cron: '0 8 * * *'
push:
branches:
- main
pull_request:
jobs:
test:
name: 'Python ${{ matrix.python-version }} on ${{ matrix.os }}'
runs-on: ${{ matrix.os }}
env:
PYTHONUNBUFFERED: 1
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.10", "3.9"]
os: [ubuntu-latest, macOS-latest, windows-latest]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: 'fetch main'
run: |
git fetch origin main
- name: 'Set up Python ${{ matrix.python-version }}'
uses: actions/setup-python@v2
with:
python-version: '${{ matrix.python-version }}'
- uses: actions/cache@v2
with:
path: ~/.cache/
key: dot-cache-files
- name: 'pip cache information'
run: |
pip3 cache info
- name: 'Bootstrap'
run: |
python3 devshell.py quit
- name: 'List installed packages'
run: |
python3 devshell.py list_venv_packages
- name: 'Run tests with Python v${{ matrix.python-version }}'
env:
PYTHONUNBUFFERED: 1
PYTHONWARNINGS: always
run: |
python3 devshell.py tox
- name: 'Upload coverage report'
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: false
verbose: true