diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 881b3f6..de1b8f7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,6 +8,9 @@ on: branches: - main +env: + PYTHONUTF8: 1 + jobs: build-python: runs-on: ${{ matrix.os }} @@ -17,6 +20,7 @@ jobs: os: - ubuntu-latest - macos-latest + - windows-latest python-version: - "3.9" - "3.10" @@ -32,19 +36,21 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install cli tools run: | - python -m pip install --upgrade phosphorus yamk uv + python -m pip install --upgrade pipx + python -m pipx ensurepath + pipx install phosphorus yamk - name: Create and activate a virtual environment (${{ matrix.os }}) shell: bash if: ${{ runner.os != 'Windows' }} run: | - uv venv .venv + python -m venv .venv echo "VIRTUAL_ENV=.venv" >> $GITHUB_ENV echo "$PWD/.venv/bin" >> $GITHUB_PATH - name: Create and activate a virtual environment (${{ matrix.os }}) shell: pwsh if: ${{ runner.os == 'Windows' }} run: | - uv venv .venv + python -m venv .venv "VIRTUAL_ENV=.venv" | Out-File -FilePath $env:GITHUB_ENV -Append "$PWD/.venv/Scripts" | Out-File -FilePath $env:GITHUB_PATH -Append - name: Use cache diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 414af64..e2cfaa6 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -8,6 +8,9 @@ on: branches: - main +env: + PYTHONUTF8: 1 + jobs: lint-python: runs-on: ${{ matrix.os }} @@ -17,6 +20,7 @@ jobs: os: - ubuntu-latest - macos-latest + - windows-latest python-version: - "3.9" - "3.10" @@ -32,19 +36,21 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install cli tools run: | - python -m pip install --upgrade phosphorus yamk uv + python -m pip install --upgrade pipx + python -m pipx ensurepath + pipx install phosphorus yamk - name: Create and activate a virtual environment (${{ matrix.os }}) shell: bash if: ${{ runner.os != 'Windows' }} run: | - uv venv .venv + python -m venv .venv echo "VIRTUAL_ENV=.venv" >> $GITHUB_ENV echo "$PWD/.venv/bin" >> $GITHUB_PATH - name: Create and activate a virtual environment (${{ matrix.os }}) shell: pwsh if: ${{ runner.os == 'Windows' }} run: | - uv venv .venv + python -m venv .venv "VIRTUAL_ENV=.venv" | Out-File -FilePath $env:GITHUB_ENV -Append "$PWD/.venv/Scripts" | Out-File -FilePath $env:GITHUB_PATH -Append - name: Use cache diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0ac1c44..9f76312 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,6 +8,9 @@ on: branches: - main +env: + PYTHONUTF8: 1 + jobs: unittest-python: runs-on: ${{ matrix.os }} @@ -17,6 +20,7 @@ jobs: os: - ubuntu-latest - macos-latest + - windows-latest python-version: - "3.9" - "3.10" @@ -32,19 +36,21 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install cli tools run: | - python -m pip install --upgrade phosphorus yamk uv + python -m pip install --upgrade pipx + python -m pipx ensurepath + pipx install phosphorus yamk - name: Create and activate a virtual environment (${{ matrix.os }}) shell: bash if: ${{ runner.os != 'Windows' }} run: | - uv venv .venv + python -m venv .venv echo "VIRTUAL_ENV=.venv" >> $GITHUB_ENV echo "$PWD/.venv/bin" >> $GITHUB_PATH - name: Create and activate a virtual environment (${{ matrix.os }}) shell: pwsh if: ${{ runner.os == 'Windows' }} run: | - uv venv .venv + python -m venv .venv "VIRTUAL_ENV=.venv" | Out-File -FilePath $env:GITHUB_ENV -Append "$PWD/.venv/Scripts" | Out-File -FilePath $env:GITHUB_PATH -Append - name: Use cache diff --git a/cookbook.yaml b/cookbook.yaml index 7e9b3a0..32710bd 100644 --- a/cookbook.yaml +++ b/cookbook.yaml @@ -1,5 +1,4 @@ $globals: - shell: bash version: "8.1" vars: p_sync: --sync