Skip to content

Check if path is contained in cwd #836

Check if path is contained in cwd

Check if path is contained in cwd #836

Workflow file for this run

# This workflow installs the package and runs the tests
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: pytest
on:
push:
branches: [ 'main' ]
pull_request:
branches: [ '**' ]
jobs:
pytest:
strategy:
matrix:
# keep consistent with py-version badge in README.md and doc/source/index.rst
# update setup.cfg and doc/source/installation.rst when deprecating python 3.8
python-version: ['3.8', '3.9', '3.10']
os: [ubuntu, macos, windows]
fail-fast: false
runs-on: ${{ matrix.os }}-latest
name: 'OS: ${{matrix.os}} py${{ matrix.python-version }}'
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install the latest pyam version from source
run: pip install git+https://github.com/IAMconsortium/pyam.git
- name: Install (other) dependencies and package
run: pip install --editable .[tests]
- name: Test with pytest
run: pytest tests