tweak readme #33
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: 'tests' | |
on: | |
push: | |
branches: | |
- dev | |
pull_request: | |
branches: | |
- main | |
jobs: | |
tests: | |
name: "Python ${{ matrix.python-version }} on ${{ matrix.os }}" | |
runs-on: "${{ matrix.os }}" | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
# - macos-latest | |
#- windows-latest | |
python-version: | |
- "3.12" | |
steps: | |
- name: "Check out the repo" | |
uses: "actions/checkout@master" | |
- name: "Set up Python" | |
uses: "actions/setup-python@master" | |
with: | |
python-version: "${{ matrix.python-version }}" | |
- name: "Install dependencies" | |
run: | | |
python -m pip install hatch coverage | |
- name: "Run hatch check" | |
run: | | |
python -m hatch run hatch-static-analysis:lint-check | |
python -m hatch run hatch-static-analysis:format-check | |
- name: "Run hatch test script for ${{ matrix.python-version }}" | |
run: | | |
python -m hatch run test:test | |
- uses: codecov/codecov-action@v4 | |
with: | |
fail_ci_if_error: true | |
files: ./coverage.xml | |
name: codecov | |
token: ${{ secrets.CODECOV_TOKEN }} | |
verbose: true | |