Skip to content

fix path issue for unit testing #85

fix path issue for unit testing

fix path issue for unit testing #85

Workflow file for this run

name: Tests
on:
push:
branches:
- main
- '**'
paths-ignore:
- 'docs/**'
- '*.md'
- '*.rst'
- '*.txt'
pull_request:
branches:
- main
- '*.x'
paths-ignore:
- 'docs/**'
- '*.md'
- '*.rst'
- '*.txt'
jobs:
tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
env:
APPDATA: DefaultNonExistingPath
strategy:
fail-fast: false
matrix:
include:
- {name: 3.10 Windows, python: '3.10', os: windows-latest, tox: py310}
- {name: 3.10 Mac, python: '3.10', os: macos-latest, tox: py310}
- {name: 3.10 Linux, python: '3.10', os: ubuntu-latest, tox: py310}
- {name: Lint, python: '3.10', os: ubuntu-latest, tox: lint}
- {name: Typing, python: '3.10', os: ubuntu-latest, tox: typing}
- {name: Style, python: '3.10', os: ubuntu-latest, tox: style}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: update pip
run: |
python -m pip install -U pip
- name: get pip cache dir
id: pip-cache
run: echo "::set-output name=dir::$(pip cache dir)"
- name: cache pip
uses: actions/cache@v3
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: pip|${{ runner.os }}|${{ matrix.python }}|${{ hashFiles('requirements/*.txt') }}
restore-keys: pip|${{ runner.os }}|${{ matrix.python }}
- run: pip install tox
env:
APPDATA: DefaultNonExistingPath
- run: tox -e ${{ matrix.tox }}