Skip to content

Commit

Permalink
chore(ci): cleanup workflows and add windows and macos
Browse files Browse the repository at this point in the history
  • Loading branch information
abn committed Nov 12, 2024
1 parent 7e56960 commit 6b089fb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 20 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/code-quality.yml

This file was deleted.

17 changes: 15 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,31 @@ on:
- '**'

jobs:
pre-commit:
name: Code Quality
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/action@v2.0.0

tests:
name: ${{ matrix.os }} / ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}-latest
continue-on-error: ${{ matrix.experimental }}
needs: [pre-commit]
strategy:
matrix:
os: [Ubuntu]
os: [ubuntu, windows, macos]
python-version: ["3.10", "3.11", "3.12", "3.13"]
experimental: [false]
fail-fast: false

steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '^1.23.0'

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
Expand All @@ -32,7 +43,9 @@ jobs:
- name: Get full python version
id: full-python-version
shell: bash
run: echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")
run: |
VERSION=$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")
echo "version=${VERSION}" >> $GITHUB_OUTPUT
- name: Install poetry
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

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

- name: Set up Python 3.13
uses: actions/setup-python@v5
Expand Down

0 comments on commit 6b089fb

Please sign in to comment.