Bump urllib3 from 2.2.1 to 2.2.2 #43
Workflow file for this run
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: tests | |
# This action is triggered: | |
# 1. when someone creates a pull request (to any branch) | |
# 2. when changes are merged into the main branch (via a pull request) | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ '*' ] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
container: ${{ matrix.container }} | |
# we support Linux and macOS | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
# Steps for running tests and analysis. | |
steps: | |
- name: Checking out repository (${{ matrix.os }}) | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
submodules: recursive | |
- name: Install a specific version of uv | |
uses: astral-sh/setup-uv@v3 | |
with: | |
version: "0.4.x" | |
enable-cache: true | |
- name: Install Python 3.12 | |
run: uv python install 3.12 | |
- name: Running tests (${{ matrix.os }}) | |
run: uv run --dev coverage run -m unittest discover | |
env: | |
DTS_KBASE_DEV_TOKEN: ${{ secrets.DTS_KBASE_DEV_TOKEN }} | |
# add this when ready | |
#- if: ${{ matrix.os == 'ubuntu-latest' }} | |
# name: Uploading coverage report to codecov.io | |
# uses: codecov/[email protected] | |
# with: | |
# token: ${{ secrets.CODECOV_TOKEN }} | |
publish: | |
runs-on: ubuntu-latest | |
# Steps for running tests and analysis. | |
steps: | |
- name: Checking out repository | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
submodules: recursive | |
- name: Install a specific version of uv | |
uses: astral-sh/setup-uv@v3 | |
with: | |
version: "0.4.x" | |
enable-cache: true | |
- name: Install Python 3.12 | |
run: uv python install 3.12 | |
- name: Build package | |
run: uv build | |
- name: Check package can be imported | |
run: uv run --with dist/dtspy-*-py3-none-any.whl --no-project -- python -c "import dts" | |
# when ready to upload to PyPI | |
# name: upload to PyPI | |
# run: uv publish |