test: test the right function #337
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: Build and Test | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: Setup and Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.9 | |
- name: Install libkrb5 for Kerberos on Linux | |
# if: contains(matrix.os, 'ubuntu') | |
run: | | |
sudo apt install -y libkrb5-dev | |
pip install requests-kerberos | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install module | |
run: pip install .[tests] | |
- name: Test with pytest | |
run: pytest | |
- name: Report coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./cov.xml | |
verbose: true |