Use os.replace for cross-platform overwriting of the destination #339
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: 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 |