Skip to content

Add utility to test actions #2

Add utility to test actions

Add utility to test actions #2

Workflow file for this run

name: Test
on:
pull_request:
branches:
- main
push:
branches:
- main
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install hatch
- name: Lint
run: |
hatch run lint:style
- name: Test
env:
VAULT_TOKEN: ${{ secrets.VAULT_TOKEN }}
YOUTRACK_TOKEN: ${{ secrets.YOUTRACK_TOKEN }}
run: |
hatch run cov-ci
- name: Upload to Codecov
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true