some packaging updates #42
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: [push, pull_request, workflow_dispatch] | |
env: | |
FORCE_COLOR: 1 | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["pypy-3.9", "3.9", "3.10", "3.11", "3.12"] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
include: | |
# Include new variables for Codecov | |
- { codecov-flag: GHA_Ubuntu, os: ubuntu-latest } | |
- { codecov-flag: GHA_macOS, os: macos-latest } | |
- { codecov-flag: GHA_Windows, os: windows-latest } | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: pip | |
- name: Install dependencies | |
run: | | |
python -m pip install -U pip wheel tox | |
- name: Tox tests | |
run: | | |
tox -e py | |
- name: Upload coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
flags: ${{ matrix.codecov-flag }} | |
name: ${{ matrix.os }} Python ${{ matrix.python-version }} |