Skip to content

Commit

Permalink
More
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea committed Feb 1, 2024
1 parent c433727 commit 38cc837
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .config/constraints.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# pip-compile --all-extras --no-annotate --output-file=.config/constraints.txt --strip-extras pyproject.toml
Expand Down Expand Up @@ -29,6 +29,7 @@ griffe==0.38.0
htmlmin2==0.1.13
idna==3.4
importlib-metadata==6.8.0
importlib-resources==6.1.1 ; python_version < "3.10"
iniconfig==2.0.0
jinja2==3.1.2
jsmin==3.0.1
Expand Down
18 changes: 11 additions & 7 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
with:
min_python: "3.9"
max_python: "3.12"
default_python: "3.11"
default_python: "3.9"
other_names: |
lint
pkg
Expand All @@ -44,7 +44,7 @@ jobs:
matrix: ${{ fromJson(needs.pre.outputs.matrix) }}
env:
FORCE_COLOR: 1

environment: test
steps:
- name: Check out src from Git
uses: actions/checkout@v4
Expand Down Expand Up @@ -79,19 +79,17 @@ jobs:
run: python3 -m tox -e ${{ matrix.passed_name }}

- name: Archive logs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: logs.zip
name: logs-${{ matrix.name }}.zip
path: .tox/**/log/

- name: Upload coverage data
if: ${{ startsWith(matrix.passed_name, 'py') }}
uses: codecov/codecov-action@v4
with:
name: ${{ matrix.passed_name }}
fail_ci_if_error: false # see https://github.com/codecov/codecov-action/issues/598
name: ${{ matrix.name }}
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true # optional (default = false)

check: # This job does nothing and is only used for the branch protection
if: always()
Expand All @@ -100,6 +98,12 @@ jobs:
- build
runs-on: ubuntu-22.04
steps:
- name: Merge logs into a single archive
uses: actions/upload-artifact/merge@v4
with:
name: logs.zip
pattern: logs-*.zip
delete-merged: true
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ci:
for more information, see https://pre-commit.ci
skip:
# https://github.com/pre-commit-ci/issues/issues/55
- deps
- pip-compile
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
Expand Down Expand Up @@ -117,7 +117,7 @@ repos:
entry: pip-compile -q --no-annotate --output-file=.config/constraints.txt pyproject.toml --all-extras --strip-extras
files: ^.config\/.*(requirements|constraints).*$
language: python
language_version: "3.10" # minimal we support officially
language_version: "3.9" # minimal we support officially
pass_filenames: false
additional_dependencies:
- pip>=22.3.1
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ commands =

[testenv:lint]
description = Enforce quality standards under {basepython} ({envpython})
base_python = python3.9
skip_install = true
deps =
pre-commit
Expand Down

0 comments on commit 38cc837

Please sign in to comment.