Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkrzyskow authored Mar 11, 2024
1 parent 24ca4e0 commit c8f31fc
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,16 @@ jobs:
python-version: 3.12
- name: Run Python stuff in order
run: |
python -c "import site, sys, os; from pprint import pprint as pp; print(os.getcwd(), '\n'); pp([sys.path, sys.prefix, sys.exec_prefix, site.PREFIXES, site.getsitepackages()])"
python -m venv venv
source venv/bin/activate
pip install cairosvg
# python ./Linux.py
# python ./macOS.py
# python ./__main__.py
# ls -la venv
# python -c "import site, sys, os; from pprint import pprint as pp; print(os.getcwd()); pp(site.getsitepackages()); pp(sys.path)"
curl "https://raw.githubusercontent.com/kamilkrzyskow/test-macos-actions/main/macOS.py" | python -
python -c "import site, sys, os; from pprint import pprint as pp; print(os.getcwd(), '\n'); pp([sys.path, sys.prefix, sys.exec_prefix, site.PREFIXES, site.getsitepackages()])"
# curl "https://raw.githubusercontent.com/kamilkrzyskow/test-macos-actions/main/macOS.py" | python -
Linux:
runs-on: ubuntu-latest
steps:
Expand All @@ -39,14 +40,15 @@ jobs:
python-version: 3.12
- name: Run Python stuff in order
run: |
python -c "import site, sys, os; from pprint import pprint as pp; print(os.getcwd(), '\n'); pp([sys.path, sys.prefix, sys.exec_prefix, site.PREFIXES, site.getsitepackages()])"
python -m venv venv
source venv/bin/activate
pip install cairosvg
# python ./Linux.py
# python ./__main__.py
# ls -la venv
# python -c "import site, sys, os; from pprint import pprint as pp; print(os.getcwd()); pp(site.getsitepackages()); pp(sys.path)"
curl "https://raw.githubusercontent.com/kamilkrzyskow/test-macos-actions/main/Linux.py" | python -
python -c "import site, sys, os; from pprint import pprint as pp; print(os.getcwd(), '\n'); pp([sys.path, sys.prefix, sys.exec_prefix, site.PREFIXES, site.getsitepackages()])"
# curl "https://raw.githubusercontent.com/kamilkrzyskow/test-macos-actions/main/Linux.py" | python -
Windows:
runs-on: windows-latest
steps:
Expand All @@ -59,12 +61,13 @@ jobs:
python-version: 3.12
- name: Run Python stuff in order
run: |
python -c "import site, sys, os; from pprint import pprint as pp; print(os.getcwd(), '\n'); pp([sys.path, sys.prefix, sys.exec_prefix, site.PREFIXES, site.getsitepackages()])"
python -m venv venv
./venv/Scripts/activate
pip install cairosvg
# python ./Linux.py
# python ./Windows.py
# python ./__main__.py
# ls venv
# python -c "import site, sys, os; from pprint import pprint as pp; print(os.getcwd()); pp(site.getsitepackages()); pp(sys.path)"
(Invoke-WebRequest "https://raw.githubusercontent.com/kamilkrzyskow/test-macos-actions/main/Windows.py").Content | python -
python -c "import site, sys, os; from pprint import pprint as pp; print(os.getcwd(), '\n'); pp([sys.path, sys.prefix, sys.exec_prefix, site.PREFIXES, site.getsitepackages()])"
# (Invoke-WebRequest "https://raw.githubusercontent.com/kamilkrzyskow/test-macos-actions/main/Windows.py").Content | python -

0 comments on commit c8f31fc

Please sign in to comment.