Clean up project configuration 🐞 #24
Workflow file for this run
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: Tests | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
python-version: [3.9] | |
# Needed by miniconda | |
# https://github.com/marketplace/actions/setup-miniconda#important | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- name: Git clone | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
channels: defaults, conda-forge | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools | |
pip install .[dev] | |
- name: Test with pytest | |
run: pytest -v --cov=tclf --pyargs tclf | |
- name: Upload Coverage to Codecov | |
uses: codecov/codecov-action@v2 |