Fix chdir and add tests for fsutils functions #219
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: pytests | |
on: [push, pull_request] | |
jobs: | |
run_pytests: | |
runs-on: ubuntu-latest | |
name: Install wxflow and run tests with pytests | |
strategy: | |
matrix: | |
python: ["3.7", "3.8", "3.9", "3.10", "3.11"] | |
steps: | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install (upgrade) python dependencies | |
run: | | |
pip install --upgrade pip | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install wxflow | |
run: | | |
cd $GITHUB_WORKSPACE | |
pip install .[dev] | |
- name: Run pytests | |
run: | | |
cd $GITHUB_WORKSPACE | |
pytest -v | |
- name: "Upload coverage to Codecov" | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |