diff --git a/.github/workflows/ci-mac.yml b/.github/workflows/ci-mac.yml new file mode 100644 index 0000000..34f3a46 --- /dev/null +++ b/.github/workflows/ci-mac.yml @@ -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 diff --git a/.github/workflows/ci-ubuntu.yml b/.github/workflows/ci-ubuntu.yml new file mode 100644 index 0000000..ec97b36 --- /dev/null +++ b/.github/workflows/ci-ubuntu.yml @@ -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