Skip to content

Merge pull request #42 from reside-ic/publish #166

Merge pull request #42 from reside-ic/publish

Merge pull request #42 from reside-ic/publish #166

Workflow file for this run

on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
name: Tests
jobs:
test:
runs-on: ubuntu-latest
env:
VAULT_TEST_GITHUB_PAT: ${{ secrets.VAULT_TEST_GITHUB_PAT }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
strategy:
fail-fast: false
matrix:
config:
- {os: macos-latest, py: '3.11'}
- {os: ubuntu-latest, py: '3.10'}
- {os: ubuntu-latest, py: '3.11'}
- {os: ubuntu-latest, py: '3.12'}
- {os: windows-latest, py: '3.11'}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.config.py }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.config.py }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install hatch
- name: Lint
run: |
hatch run lint:style
- name: Test
run: hatch run cov-ci
- name: Upload to Codecov
uses: codecov/codecov-action@v3
with:
# This can be useful, but the false positive rate is
# annoyingly high.
fail_ci_if_error: false