Skip to content

Update test.yml

Update test.yml #3

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: ${{ matrix.os }} py${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.9"]
os: [ubuntu-latest]
include:
- os: macos-latest
python-version: "3.9"
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Cache tox
uses: actions/cache@v3
with:
path: .tox
key: test-${{ hashFiles('pyproject.toml') }}
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: "pyproject.toml"
- name: Install dependencies
run: python -m pip install tox tox-gh-actions
# this runs the platform-specific tests declared in tox.ini
- name: Test with tox
uses: aganders3/headless-gui@v1
with:
run: python -m tox -v
env:
PLATFORM: ${{ matrix.os }}
- name: Coverage
uses: coverallsapp/github-action@v2
with:
file: coverage.lcov