Update index.md #4
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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: CI cogee | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
python-version: ["3.9", "3.10"] | |
steps: | |
- name: Checkout repository | |
continue-on-error: true | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Create whl files | |
continue-on-error: true | |
run: | | |
pip install setuptools | |
pip install wheel | |
python setup.py sdist bdist_wheel | |
cd dist | |
- name: List & install wheel files(ubuntu) | |
continue-on-error: true | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
for file in dist/*.whl; do | |
echo "Installing $file..." | |
pip install "$file" | |
done | |
- name: List & install wheel files(mac) | |
continue-on-error: true | |
if: matrix.os == 'macos-latest' | |
run: | | |
for file in dist/*.whl; do | |
echo "Installing $file..." | |
pip install "$file" | |
done | |
- name: List & install wheel files(windows) | |
continue-on-error: true | |
if: matrix.os == 'windows-latest' | |
run: | | |
foreach ($file in Get-ChildItem -Path dist -Filter *.whl) { | |
Write-Host "Installing $file..." | |
pip.exe install "$file" | |
} | |
- name: test pkg | |
run: | | |
cogee -h |