Skip to content

ci: update to latest actions #56

ci: update to latest actions

ci: update to latest actions #56

Workflow file for this run

name: Tests
on:
- push
- pull_request
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- 'pypy-3.9'
steps:
- 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
- uses: actions/upload-artifact@v3
with:
name: coverage-data
path: .coverage.*
retention-days: 1
coverage:
needs: tests
if: always()
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- uses: actions/download-artifact@v3
with:
name: coverage-data
- name: Test coverage
run: tox -e cover
- uses: actions/upload-artifact@v3
with:
name: htmlcov
path: htmlcov
retention-days: 2
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Test with tox
run: tox -e lint