mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-04 18:45:22 +00:00

The idea is to have the status badge report if the tests are passing, without considering codecov since it frequently fails due to some network hickup that makes the report upload to fail. This also makes things a bit more compartimentalized.
31 lines
774 B
YAML
31 lines
774 B
YAML
name: Tests
|
|
on:
|
|
push:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
run_tests:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
python-version: ['3.8', '3.9', '3.10', '3.11', 'pypy-3.9-7.3.12']
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install tox tox-gh-actions
|
|
|
|
- name: Test with tox
|
|
run: tox
|