Skip to content

Commit

Permalink
Merge pull request #109 from stanislaw/ci
Browse files Browse the repository at this point in the history
CI setup with GitHub Actions
  • Loading branch information
stanislaw authored Apr 5, 2020
2 parents d9c1b34 + b102675 commit f57cc4d
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci-mac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "FileCheck.py on macOS"

on: [pull_request]

jobs:
build:
runs-on: macOS-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: |
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
echo ::set-env name=PATH::$HOME/.poetry/bin:$PATH
- name: Install dependencies
run: |
poetry config virtualenvs.in-project true
poetry install
- name: Run tests
run: |
poetry run invoke test
37 changes: 37 additions & 0 deletions .github/workflows/ci-ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "FileCheck.py on Ubuntu"

on: [pull_request]

jobs:
build:
runs-on: ubuntu-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: |
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
echo ::set-env name=PATH::$HOME/.poetry/bin:$PATH
- name: Install dependencies
run: |
poetry config virtualenvs.in-project true
poetry install
- name: Run tests
run: |
poetry run invoke test

0 comments on commit f57cc4d

Please sign in to comment.