Skip to content

Use os.replace for cross-platform overwriting of the destination #339

Use os.replace for cross-platform overwriting of the destination

Use os.replace for cross-platform overwriting of the destination #339

Workflow file for this run

name: PyCI
on:
pull_request:
push:
branches:
- 'main'
- 'release-**'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
name: Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Run tests with requirements.txt
run: |
python -m venv venv-requirements-txt
source venv-requirements-txt/bin/activate
pip install -r requirements/py${{ matrix.python-version }}.txt
python -m unittest discover pigar/tests/ -t . -v
- name: Run tests with pip install -e
run: |
python -m venv venv-pip-e
source venv-pip-e/bin/activate
pip install -e .
python -m unittest discover pigar/tests/ -t . -v