Skip to content

Commit

Permalink
👷 Run CI/CD for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
spapanik committed Nov 12, 2024
1 parent 178efa6 commit d2e9e76
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 10 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
branches:
- main

env:
PYTHONUTF8: 1

jobs:
build-python:
runs-on: ${{ matrix.os }}
Expand All @@ -17,6 +20,7 @@ jobs:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python-version:
- "3.9"
- "3.10"
Expand All @@ -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
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
branches:
- main

env:
PYTHONUTF8: 1

jobs:
lint-python:
runs-on: ${{ matrix.os }}
Expand All @@ -17,6 +20,7 @@ jobs:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python-version:
- "3.9"
- "3.10"
Expand All @@ -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
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
branches:
- main

env:
PYTHONUTF8: 1

jobs:
unittest-python:
runs-on: ${{ matrix.os }}
Expand All @@ -17,6 +20,7 @@ jobs:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python-version:
- "3.9"
- "3.10"
Expand All @@ -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
Expand Down
1 change: 0 additions & 1 deletion cookbook.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
$globals:
shell: bash
version: "8.1"
vars:
p_sync: --sync
Expand Down

0 comments on commit d2e9e76

Please sign in to comment.