forked from github/pelican
Test package installation on Windows in CI
This commit is contained in:
parent
9c3bb6bf91
commit
30d782fd84
1 changed files with 38 additions and 0 deletions
38
.github/workflows/main.yml
vendored
38
.github/workflows/main.yml
vendored
|
|
@ -125,6 +125,44 @@ jobs:
|
|||
run: tox -e docs
|
||||
|
||||
|
||||
install_sdist:
|
||||
name: Install sdist on Windows
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v1.1.1
|
||||
with:
|
||||
python-version: 3.6
|
||||
- name: Test sdist installation on Windows
|
||||
run: |
|
||||
python -m pip install -U pip poetry
|
||||
poetry build
|
||||
python -m pip install ${env:GITHUB_WORKSPACE}\dist\pelican-4.2.0.tar.gz
|
||||
echo "Pelican version:"
|
||||
pelican --version
|
||||
|
||||
|
||||
install_wheel:
|
||||
name: Install wheel on Windows
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v1.1.1
|
||||
with:
|
||||
python-version: 3.6
|
||||
- name: Test wheel installation on Windows
|
||||
run: |
|
||||
python -m pip install -U pip poetry
|
||||
poetry build
|
||||
python -m pip install ${env:GITHUB_WORKSPACE}\dist\pelican-4.2.0-py3-none-any.whl
|
||||
echo "Pelican version:"
|
||||
pelican --version
|
||||
|
||||
|
||||
deploy:
|
||||
name: Deploy
|
||||
needs: [test, lint, docs]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue