Skip to content

Commit

Permalink
CI: GitHub Actions on Windows setup
Browse files Browse the repository at this point in the history
Closes #112
  • Loading branch information
stanislaw committed Apr 14, 2020
1 parent b690033 commit 14636a5
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/ci-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: "FileCheck.py on Windows"

on: [pull_request]

jobs:
build:
runs-on: windows-latest

strategy:
matrix:
python-version: [3.5, 3.6, 3.7, 3.8]

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}

- name: Upgrade pip
run: |
python -m pip install --upgrade pip
- name: Install Poetry
run: |
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python
- name: "Poetry: add to %PATH%"
run: |
echo "::add-path::$env:USERPROFILE\.poetry\bin"
- name: "Print PATH"
run: |
echo $env:USERPROFILE
echo $env:PATH
- name: "Print PWD"
run: |
echo "$PWD"
- name: "Poetry: print version"
run: |
poetry --version
- name: "Poetry: configure settings"
run: |
poetry config virtualenvs.in-project true
- name: "Poetry: Install dependencies"
run: |
poetry install
- name: Run tests
run: |
poetry run invoke test

0 comments on commit 14636a5

Please sign in to comment.