chore: adding snapshot tests (#117) #107
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: CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: | |
- '3.8' | |
- '3.9' | |
- '3.10' | |
- '3.11' | |
- '3.12' | |
steps: | |
- name: Install Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "${{ matrix.python-version }}" | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
lfs: true | |
- name: Install test dependencies via pip | |
run: pip install -r requirements/test_black.txt | |
- name: Lint | |
run: make lint | |
- name: Run tests | |
run: | | |
make test | |
coverage report | |
coverage xml | |
- name: Upload Python coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
flags: python | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |