From e5b69b6c707c0cd305e7d90ec07d20b3d4d01d99 Mon Sep 17 00:00:00 2001 From: Ross Williams Date: Wed, 1 Jul 2020 06:21:14 +0100 Subject: [PATCH 1/2] Create test.yml --- .github/workflows/test.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..b1c87d9 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,30 @@ +name: tests + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.8] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pipenv + pipenv sync -d + - name: Test with pytest + run: | + pipenv run pytest From 5895e1456fba94bc2e78c1a352801599c109b68c Mon Sep 17 00:00:00 2001 From: Ross Williams Date: Wed, 1 Jul 2020 06:30:45 +0100 Subject: [PATCH 2/2] Try install instead of sync --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b1c87d9..71cf6cc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,7 +24,7 @@ jobs: run: | python -m pip install --upgrade pip pip install pipenv - pipenv sync -d + pipenv install -d - name: Test with pytest run: | pipenv run pytest