From 4fd4ec3cee6cf827d0a6120d80132bd7d3fedf8b Mon Sep 17 00:00:00 2001 From: fabiocat93 Date: Fri, 14 Jun 2024 15:40:34 -0400 Subject: [PATCH] attempt to organize CI better #3 --- .github/workflows/test.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index e172177e..70910c75 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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 @@ -57,7 +62,9 @@ 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 @@ -65,6 +72,11 @@ jobs: 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