Skip to content

build: move to hatch #26

build: move to hatch

build: move to hatch #26

Workflow file for this run

# Build, test, and run static analyses, and send reports to external services
# Runs only on pushing to main
name: maintest
on:
push:
branches: [main, master]
jobs:
test:
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
python-version: ["3.9"]
name: "test on ${{ matrix.os }}/py${{ matrix.python-version }}"
runs-on: "${{ matrix.os }}"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: "Set up Python ${{ matrix.python-version }}"
uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python-version }}"
- name: Install build meta-dependencies
run: |
pip install 'poetry>=1.1,<2' 'tox>=3,<4' 'wheel>=0.37,<1.0'
- name: Test with tox
run: |
tox -v
- name: Update coveralls
if: runner.os == 'Linux'
run: |
pip install 'coveralls>=3,<4'
coveralls --service=github || true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update codecov
if: runner.os == 'Linux'
run: |
pip install 'codecov>=2.1,<3.0'
codecov || true