From 4f97fcc3b79f7549e6dbb6f95d39f2dbc56fff2e Mon Sep 17 00:00:00 2001 From: Michael Wikberg Date: Tue, 15 Feb 2022 10:39:51 +0200 Subject: [PATCH] Add freezegun test dependency workflow tweaks --- .github/release-drafter.yml | 4 +++- .github/workflows/codecov.yaml | 3 +-- .github/workflows/validate.yml | 2 +- .github/workflows/validate_pr.yaml | 2 +- pyproject.toml | 3 +-- requirements-test.txt | 8 +++----- 6 files changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 6f0a3664..094ad4b5 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -15,8 +15,10 @@ categories: - "bug" - title: "🧰 Maintenance" - label: + labels: - "dependencies" + - "refactoring" + - "tests" version-resolver: major: diff --git a/.github/workflows/codecov.yaml b/.github/workflows/codecov.yaml index 66d5224d..1cf0c8a4 100644 --- a/.github/workflows/codecov.yaml +++ b/.github/workflows/codecov.yaml @@ -32,5 +32,4 @@ jobs: files: ./coverage.xml flags: unittests name: codecov-volkswagencarnet - # path_to_write_report: ./coverage/codecov_report.txt - verbose: true \ No newline at end of file + verbose: true diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 47a761a5..1e7d44d4 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -22,7 +22,7 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} + - name: Set up Python 3.10 uses: actions/setup-python@v2 with: python-version: "3.10" diff --git a/.github/workflows/validate_pr.yaml b/.github/workflows/validate_pr.yaml index 0a3057b8..e5ed5533 100644 --- a/.github/workflows/validate_pr.yaml +++ b/.github/workflows/validate_pr.yaml @@ -13,7 +13,7 @@ jobs: uses: jesusvasquez333/verify-pr-label-action@v1.4.0 with: github-token: "${{ secrets.GITHUB_TOKEN }}" - valid-labels: "bug, enhancement, dependencies" + valid-labels: "bug, enhancement, dependencies, refactoring, tests" invalid-labels: "help wanted, invalid, question" pull-request-number: "${{ github.event.pull_request.number }}" disable-reviews: true diff --git a/pyproject.toml b/pyproject.toml index 28c05405..be34edbd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,6 @@ requires = [ "wheel>=0.37.0", "setuptools_scm>=6.x", "pytest>=5,<8", - "freezegun>=1.0" ] build-backend = "setuptools.build_meta" @@ -23,4 +22,4 @@ extend-exclude = ''' | tests/data | profiling )/ -''' \ No newline at end of file +''' diff --git a/requirements-test.txt b/requirements-test.txt index ffbd76dc..5643bc68 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,10 +1,8 @@ -lxml -beautifulsoup4 -aiohttp -pyjwt +-r requirements.txt pytest>=7.0.0 setuptools pytest-asyncio flake8 pytest-cov -black \ No newline at end of file +black +freezegun=>1.0.0