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..e496f54 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -1,11 +1,13 @@ name: Coverage + 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 4b0f0f4..11e295c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,19 +1,43 @@ name: Tests + 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", "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 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