Skip to content

uri2fsn: fix handling of relative paths with newer Python #16

uri2fsn: fix handling of relative paths with newer Python

uri2fsn: fix handling of relative paths with newer Python #16

Workflow file for this run

name: main
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-13, windows-2019]
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13', 'pypy3.10']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest hypothesis flake8 coverage setuptools
- name: Run tests on Unix
if: ${{ matrix.os != 'windows-2019' }}
run: |
LANG=C LC_ALL=C python -c "import sys; print(sys.getfilesystemencoding())";
LANG=C LC_ALL=C python -m coverage run --branch setup.py test
LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 python -c "import sys; print(sys.getfilesystemencoding())";
LANG=C LC_ALL=C python -m coverage run --append --branch setup.py test
python -m coverage xml -i
- name: Run tests on Windows
if: ${{ matrix.os == 'windows-2019' }}
run: |
python -m coverage run --branch setup.py test
python -m coverage xml -i
- name: Run flake8
run: |
python -m flake8
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5