Skip to content

Commit

Permalink
attempt to organize CI better #3
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocat93 committed Jun 14, 2024
1 parent 72fad6b commit 4fd4ec3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ jobs:
poetry run pip install iso-639
poetry install --with dev
shell: bash
- name: Archive Dependencies
uses: actions/upload-artifact@v4
with:
name: python-dependencies
path: ~/.cache/my-poetry-cache

test:
needs: setup
Expand All @@ -57,14 +62,21 @@ jobs:
- {os: ubuntu-latest, architecture: x64, python-version: '3.10', test: codespell}
- {os: ubuntu-latest, architecture: x64, python-version: '3.10', test: ruff}
- {os: ubuntu-latest, architecture: x64, python-version: '3.11', test: pytest}
- {os: macos-latest, architecture: x64, python-version: '3.10', test: pytest}
- {os: macos-latest, architecture: arm64, python-version: '3.10', test: pytest}
- {os: macos-latest, architecture: x64, python-version: '3.11', test: pytest}
- {os: macos-latest, architecture: arm64, python-version: '3.11', test: pytest}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Download Dependencies
uses: actions/download-artifact@v4
with:
name: python-dependencies
path: ~/.cache/my-poetry-cache
- name: Run codespell
if: matrix.test == 'codespell'
run: poetry run codespell
Expand Down

0 comments on commit 4fd4ec3

Please sign in to comment.