Bump filelock from 3.20.0 to 3.20.1 (#658) #1943
This file contains hidden or 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: Python Package CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - macos-latest | |
| - ubuntu-latest | |
| - windows-latest | |
| python-version: | |
| - "3.11" | |
| runs-on: ${{ matrix.os }} | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Create Environment and Install Dependencies | |
| run: | | |
| python -m venv venv | |
| if [ "$RUNNER_OS" == "Windows" ]; then | |
| source venv/Scripts/activate | |
| else | |
| source venv/bin/activate | |
| fi | |
| echo PATH=$PATH >> $GITHUB_ENV | |
| python -m pip install --upgrade pip | |
| pip install pylint pytest pytest-cov | |
| if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
| - name: Set up Homebrew | |
| if: matrix.os == 'macos-latest' | |
| uses: Homebrew/actions/setup-homebrew@master | |
| - name: Install PyICU dependencies | |
| if: matrix.os == 'macos-latest' | |
| run: | | |
| brew install icu4c | |
| # Configure PATH & PKG_CONFIG_PATH as in https://gitlab.pyicu.org/main/pyicu. | |
| export PATH="$(brew --prefix)/opt/icu4c/bin:$(brew --prefix)/opt/icu4c/sbin:$PATH" | |
| export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(brew --prefix)/opt/icu4c/lib/pkgconfig" | |
| - name: Run pytest - Unit Tests | |
| run: pytest . --cov=. --cov-report=term-missing --cov-fail-under=70 --cov-config=./pyproject.toml |