chore(deps-dev): bump urllib3 from 2.5.0 to 2.6.0 #24
Workflow file for this run
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: CI | |
| on: | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| name: Test on ${{ matrix.os }} Python ${{ matrix.python-version }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| python-version: ["3.10", "3.11"] | |
| 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 CMake | |
| uses: lukka/get-cmake@v3.25.1 | |
| - name: Install Ninja | |
| if: runner.os == 'Windows' | |
| run: | | |
| choco install ninja | |
| echo "C:\Program Files\ninja" >> $GITHUB_PATH | |
| - name: Install Poetry | |
| uses: abatilo/actions-poetry@v3 | |
| with: | |
| poetry-version: 1.8.0 | |
| - name: Configure Poetry | |
| run: poetry config virtualenvs.in-project true | |
| - name: Load cached venv | |
| id: cached-poetry-dependencies | |
| uses: actions/cache@v3 | |
| with: | |
| path: .venv | |
| key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }} | |
| - name: Install dependencies | |
| if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | |
| run: poetry install --no-interaction --no-root | |
| - name: Install project | |
| run: poetry install --no-interaction | |
| - name: Build and install C extensions | |
| run: | | |
| cd stampix/auspostgen/_c | |
| # Create and configure build directory | |
| mkdir -p build | |
| cd build | |
| # Configure CMake | |
| cmake .. -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=$(which python) | |
| cmake --build . --config Release | |
| if [[ "${{ runner.os }}" == "Windows" ]]; then | |
| cp Release/auspost.pyd ../ | |
| elif [[ "${{ runner.os }}" == "macOS" ]]; then | |
| # Try different possible output names | |
| if [ -f "libauspost.dylib" ]; then | |
| cp libauspost.dylib ../auspost.so | |
| elif [ -f "auspost.dylib" ]; then | |
| cp auspost.dylib ../auspost.so | |
| elif [ -f "auspost.so" ]; then | |
| cp auspost.so ../auspost.so | |
| else | |
| echo "Error: Could not find the built library file" | |
| ls -la | |
| exit 1 | |
| fi | |
| else | |
| # Try different possible output names | |
| if [ -f "libauspost.so" ]; then | |
| cp libauspost.so ../auspost.so | |
| elif [ -f "auspost.so" ]; then | |
| cp auspost.so ../auspost.so | |
| else | |
| echo "Error: Could not find the built library file" | |
| ls -la | |
| exit 1 | |
| fi | |
| fi | |
| cd ../../../../ | |
| - name: Run tests | |
| run: poetry run pytest | |
| - name: Run linting | |
| run: | | |
| poetry run black --check . | |
| poetry run isort --check . | |
| poetry run ruff check . | |
| - name: Run type checking | |
| run: poetry run mypy . |