Skip to content

Commit de8ad65

Browse files
committed
chore(ci): cleanup workflows and add windows and macos
1 parent 7e56960 commit de8ad65

3 files changed

Lines changed: 16 additions & 20 deletions

File tree

.github/workflows/code-quality.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,31 @@ on:
99
- '**'
1010

1111
jobs:
12+
pre-commit:
13+
name: Code Quality
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-python@v5
18+
- uses: pre-commit/action@v2.0.0
19+
1220
tests:
1321
name: ${{ matrix.os }} / ${{ matrix.python-version }}
1422
runs-on: ${{ matrix.os }}-latest
1523
continue-on-error: ${{ matrix.experimental }}
24+
needs: [pre-commit]
1625
strategy:
1726
matrix:
18-
os: [Ubuntu]
27+
os: [ubuntu, windows, macos]
1928
python-version: ["3.10", "3.11", "3.12", "3.13"]
2029
experimental: [false]
2130
fail-fast: false
2231

2332
steps:
2433
- uses: actions/checkout@v4
2534
- uses: actions/setup-go@v5
35+
with:
36+
go-version: '^1.23.0'
2637

2738
- name: Set up Python ${{ matrix.python-version }}
2839
uses: actions/setup-python@v5
@@ -32,7 +43,9 @@ jobs:
3243
- name: Get full python version
3344
id: full-python-version
3445
shell: bash
35-
run: echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")
46+
run: |
47+
VERSION=$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")
48+
echo "version=${VERSION}" >> $GITHUB_OUTPUT
3649
3750
- name: Install poetry
3851
shell: bash

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
- name: Get tag
1717
id: tag
18-
run: echo ::set-output name=tag::${GITHUB_REF#refs/tags/}
18+
run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
1919

2020
- name: Set up Python 3.13
2121
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)