Skip to content
This repository was archived by the owner on Feb 13, 2021. It is now read-only.

Commit 1522669

Browse files
author
staticdev
committed
Updated tests
1 parent 96f3c27 commit 1522669

1 file changed

Lines changed: 25 additions & 6 deletions

File tree

.github/workflows/tests.yml

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,33 @@ jobs:
66
matrix:
77
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
88
python-version: ["3.7", "3.8"]
9-
runs-on: ${{ matrix.os }}
109
name: Python ${{ matrix.python-version }} (${{ matrix.os }})
10+
runs-on: ${{ matrix.os }}
1111
steps:
1212
- uses: actions/checkout@v2.1.0
1313
- uses: actions/setup-python@v1.2.0
14-
with:
15-
python-version: ${{ matrix.python-version }}
16-
- run: |
14+
- name: Install tools using pip
15+
run: |
1716
pip install --constraint=.github/workflows/constraints.txt pip
18-
pip install --constraint=.github/workflows/constraints.txt nox poetry
19-
- run: nox --force-color
17+
pip install --constraint=.github/workflows/constraints.txt cookiecutter nox poetry pre-commit
18+
- name: Create git repository
19+
if: matrix.os != 'windows-latest'
20+
run: |
21+
git init
22+
git config --local user.name "GitHub Action"
23+
git config --local user.email "action@github.com"
24+
git add .
25+
git commit --message="Initial import"
26+
- name: Create git repository (Windows)
27+
if: matrix.os == 'windows-latest'
28+
run: |
29+
git init
30+
git config --local user.name "GitHub Action"
31+
git config --local user.email "action@github.com"
32+
$ErrorActionPreference = "Continue"
33+
git add .
34+
$ErrorActionPreference = "Stop"
35+
git add --renormalize .
36+
git commit --message="Initial import"
37+
- name: Run test suite using Nox
38+
run: nox --force-color

0 commit comments

Comments
 (0)