Skip to content

testing actions

testing actions #26

Workflow file for this run

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 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