From 1f5dba3157b81d88988ea1c179f197175784dc7a Mon Sep 17 00:00:00 2001 From: staticdev Date: Tue, 12 May 2020 19:23:59 -0300 Subject: [PATCH 1/7] Added windows tests --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index fbb7b73..3dc53da 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,7 +4,7 @@ jobs: tests: strategy: matrix: - os: ["ubuntu-latest", "macos-latest"] + os: ["ubuntu-latest", "windows-latest", "macos-latest"] python-version: ["3.7", "3.8"] runs-on: ${{ matrix.os }} name: Python ${{ matrix.python-version }} (${{ matrix.os }}) From e9eec6894ea0d17e0c4e5596ddcad47aa0245dca Mon Sep 17 00:00:00 2001 From: staticdev Date: Tue, 12 May 2020 20:51:06 -0300 Subject: [PATCH 2/7] Ascii test --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index d732591..0828049 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ name = "toml-validator" version = "1.2.0" description = "Simple TOML file validator using Python." -authors = ["Thiago Carvalho D'Ávila "] +authors = ["Thiago Carvalho D'Avila "] license = "MIT" readme = "README.md" repository = "https://github.com/staticdev/toml-validator" From 0872f962340e4f838666eaa4afe726f1853a2c8d Mon Sep 17 00:00:00 2001 From: staticdev Date: Tue, 12 May 2020 21:00:56 -0300 Subject: [PATCH 3/7] TOML ASCII --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 0828049..d732591 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ name = "toml-validator" version = "1.2.0" description = "Simple TOML file validator using Python." -authors = ["Thiago Carvalho D'Avila "] +authors = ["Thiago Carvalho D'Ávila "] license = "MIT" readme = "README.md" repository = "https://github.com/staticdev/toml-validator" From aaa5afc357a30de06e1a0eb1acb8afb166dfefde Mon Sep 17 00:00:00 2001 From: staticdev Date: Sun, 17 May 2020 14:34:29 -0300 Subject: [PATCH 4/7] Testing fix on TOML hook --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 36f6186..ef67dbb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v2.5.0 + rev: v3.0.1 hooks: - id: check-toml - id: check-yaml From 9c420c861d35bee278d255c5599c70ef65b89a6b Mon Sep 17 00:00:00 2001 From: staticdev Date: Sun, 17 May 2020 15:48:17 -0300 Subject: [PATCH 5/7] Updates actions --- .github/workflows/constraints.txt | 1 - .github/workflows/coverage.yml | 8 ++++-- .github/workflows/release.yml | 2 +- .github/workflows/tests.yml | 46 ++++++++++++++++++++++++------- 4 files changed, 43 insertions(+), 14 deletions(-) diff --git a/.github/workflows/constraints.txt b/.github/workflows/constraints.txt index 9b28087..179fdc7 100644 --- a/.github/workflows/constraints.txt +++ b/.github/workflows/constraints.txt @@ -1,4 +1,3 @@ pip==20.1 nox==2019.11.9 poetry==1.0.5 -pre-commit==2.3.0 diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 152ebdb..2709c29 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -1,11 +1,15 @@ name: Coverage -on: [push, pull_request] + +on: + - push + - pull_request + jobs: coverage: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2.1.0 - - uses: actions/setup-python@v1.2.0 + - uses: actions/setup-python@v2 with: python-version: "3.8" - run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7472bec..da9f0f4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2.1.0 - - uses: actions/setup-python@v1.2.0 + - uses: actions/setup-python@v2 with: python-version: "3.8" - run: | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index dc3d561..7e103e1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,19 +1,45 @@ name: Tests -on: [push, pull_request] + +on: + - push + - pull_request + jobs: tests: + name: Tests (${{ matrix.python-version }}, ${{ matrix.os }}) + runs-on: ${{ matrix.os }} strategy: + fail-fast: false matrix: - os: ["ubuntu-latest", "windows-latest", "macos-latest"] - python-version: ["3.7", "3.8"] - runs-on: ${{ matrix.os }} - name: Python ${{ matrix.python-version }} (${{ matrix.os }}) + include: + - { python-version: 3.8, os: ubuntu-latest } + - { python-version: 3.8, os: windows-latest } + - { python-version: 3.8, os: macos-latest } + - { python-version: 3.7, os: ubuntu-latest } steps: - - uses: actions/checkout@v2.1.0 - - uses: actions/setup-python@v1.2.0 + - name: Check out the repository + uses: actions/checkout@v2.1.0 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - - run: | + + - name: Upgrade pip + run: | pip install --constraint=.github/workflows/constraints.txt pip - pip install --constraint=.github/workflows/constraints.txt nox poetry - - run: nox --force-color + pip --version + + - name: Install Poetry + run: | + pip install --constraint=.github/workflows/constraints.txt poetry + poetry --version + + - name: Install Nox + run: | + pip install --constraint=.github/workflows/constraints.txt nox + nox --version + + - name: Run Nox + run: | + nox --force-color From 2626f9e4121b9563eb3aa10868000d6384d5cd2f Mon Sep 17 00:00:00 2001 From: staticdev Date: Sun, 17 May 2020 15:58:22 -0300 Subject: [PATCH 6/7] Comment windows matrix --- .github/workflows/tests.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7e103e1..11e295c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,8 +1,6 @@ name: Tests -on: - - push - - pull_request +on: [push, pull_request] jobs: tests: @@ -13,7 +11,7 @@ jobs: matrix: include: - { python-version: 3.8, os: ubuntu-latest } - - { python-version: 3.8, os: windows-latest } + # - { python-version: 3.8, os: windows-latest } - { python-version: 3.8, os: macos-latest } - { python-version: 3.7, os: ubuntu-latest } steps: From c986ad237b90772acf3a77513a2d10d8b7b82fee Mon Sep 17 00:00:00 2001 From: staticdev Date: Sun, 17 May 2020 16:03:24 -0300 Subject: [PATCH 7/7] Trigger spacing --- .github/workflows/coverage.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 2709c29..e496f54 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -1,8 +1,6 @@ name: Coverage -on: - - push - - pull_request +on: [push, pull_request] jobs: coverage: