From 5208fce8fad026f7ea370dbb3b52143ec7ea06af Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Tue, 5 Mar 2024 16:30:37 -0600 Subject: [PATCH] CI tweaks --- .github/workflows/codeql.yml | 4 ++-- .github/workflows/release.yml | 5 ++--- .github/workflows/test.yml | 9 +++------ .pre-commit-config.yaml | 7 ------- 4 files changed, 7 insertions(+), 18 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 893e82b..17ec2ff 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -28,10 +28,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Dependencies (python) - run: pip3 install -r requirements-dev.txt + run: pip3 install -r requirements.txt -r requirements_server.txt - name: Initialize CodeQL uses: github/codeql-action/init@v2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0c9b446..40ecce9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,7 +21,7 @@ jobs: GITHUB_CONTEXT: ${{ toJson(github) }} run: echo "$GITHUB_CONTEXT" - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v4 @@ -30,8 +30,7 @@ jobs: - name: Install deps run: | - python -mpip install wheel - python -mpip install -r requirements-dev.txt + python -mpip install build wheel - name: Build release run: python -mbuild diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 51cef6a..c873b1b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,7 +22,7 @@ jobs: with: python-version: 3.x - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: pre-commit uses: pre-commit/action@v3.0.0 @@ -41,7 +41,7 @@ jobs: test-release: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v4 @@ -49,10 +49,7 @@ jobs: python-version: 3.11 - name: install deps - run: pip install -r requirements-dev.txt - -# - name: check types with mypy -# run: make + run: pip install build wheel - name: Build release run: python -mbuild diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b95f2eb..97b24e7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,10 +32,3 @@ repos: args: [ --fix, --preview ] # Run the formatter. - id: ruff-format -#- repo: local -# hooks: -# - id: mypy -# name: Run the mypy type linter -# language: system -# types: [python] -# entry: 'make mypy'