Skip to content

Commit 038f655

Browse files
committed
fix actions
1 parent 4d0713c commit 038f655

File tree

2 files changed

+13
-21
lines changed

2 files changed

+13
-21
lines changed

.github/workflows/build.yaml

+8-7
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
name: "Build @ ${{ matrix.python-version }}"
2424
steps:
2525
- name: "Checkout Repository"
26-
uses: actions/checkout@v3
26+
uses: actions/checkout@v4
2727
with:
2828
fetch-depth: 0
2929

@@ -54,7 +54,7 @@ jobs:
5454
id: cached-pip-wheels
5555
uses: actions/cache@v3
5656
with:
57-
path: ~/.venv/
57+
path: .venv/
5858
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
5959

6060
- name: "Install Python deps @ ${{ matrix.python-version }}"
@@ -81,7 +81,8 @@ jobs:
8181
poetry run sphinx-build -aETW --keep-going . build
8282
8383
- name: "Upload artifacts @ ${{ matrix.python-version}}"
84-
uses: actions/upload-artifact@v3
84+
if: ${{ matrix.python-version == '3.11' }}
85+
uses: actions/upload-artifact@v4
8586
with:
8687
name: distributions
8788
path: dist/*
@@ -95,13 +96,13 @@ jobs:
9596
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')
9697

9798
steps:
98-
- uses: actions/checkout@v3
99+
- uses: actions/checkout@v4
99100
with:
100101
fetch-depth: 0
101102
submodules: true
102103

103104
- name: Download Artifacts
104-
uses: actions/download-artifact@v2
105+
uses: actions/download-artifact@v4
105106
with:
106107
name: distributions
107108
path: dist
@@ -114,10 +115,10 @@ jobs:
114115
set -x
115116
assets=()
116117
for asset in ./dist/*.{whl,tar.gz}; do
117-
assets+=("-a" "$asset")
118+
assets+=("$asset")
118119
done
119120
tag_name="${GITHUB_REF##*/}"
120-
hub release create "${assets[@]}" -F "CHANGELOG.md" "$tag_name"
121+
gh release create "$tag_name" -F "CHANGELOG.md" "${assets[@]}"
121122
122123
- name: "Set up Poetry"
123124
uses: snok/install-poetry@v1

.github/workflows/coverage_and_lint.yaml

+5-14
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.x' ]
18+
python-version: [ '3.8', '3.x' ]
1919

2020
name: "Type Coverage and Linting @ ${{ matrix.python-version }}"
2121
steps:
2222
- name: "Checkout Repository"
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
2424
with:
2525
fetch-depth: 0
2626

@@ -38,7 +38,7 @@ jobs:
3838
version: latest
3939
virtualenvs-create: true
4040
virtualenvs-in-project: true
41-
virtualenvs-path: ~/.venv
41+
virtualenvs-path: .venv
4242

4343
- name: "Setup Python @ ${{ matrix.python-version }}"
4444
id: setup-python
@@ -58,7 +58,7 @@ jobs:
5858
if: ${{ steps.cached-pip-wheels.outputs.cache-hit != 'true' }}
5959
id: install-deps
6060
run: |
61-
poetry install --without=dev --no-interaction
61+
poetry install --all-extras -n --no-cache --no-interaction
6262
6363
- name: Activate venv @ ${{ matrix.python-version }}
6464
run: |
@@ -74,13 +74,4 @@ jobs:
7474

7575
- name: Lint
7676
if: ${{ always() && steps.install-deps.outcome == 'success' }}
77-
uses: github/super-linter/slim@v4
78-
env:
79-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
80-
DEFAULT_BRANCH: main
81-
VALIDATE_ALL_CODEBASE: false
82-
VALIDATE_PYTHON_BLACK: true
83-
VALIDATE_PYTHON_ISORT: true
84-
LINTER_RULES_PATH: /
85-
PYTHON_ISORT_CONFIG_FILE: pyproject.toml
86-
PYTHON_BLACK_CONFIG_FILE: pyproject.toml
77+
uses: chartboost/ruff-action@v1

0 commit comments

Comments
 (0)