Skip to content

Commit

Permalink
refactor(ci): switch from docker to local gha runner tests
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-awd committed Nov 8, 2023
1 parent 09b4b41 commit 84e5483
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,24 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Git Crypt
- name: Install git crypt & john
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
brew install git-crypt
brew fetch git-crypt & brew fetch john-jumbo
brew install git-crypt john-jumbo
echo '${{ secrets.GIT_CRYPT_KEY }}' | base64 --decode > /tmp/git-crypt-key
git-crypt unlock /tmp/git-crypt-key
rm /tmp/git-crypt-key
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Install pdftotext dependencies
run: |
sudo apt-get update && sudo apt-get -y install build-essential libpoppler-cpp-dev pkg-config
- name: Build image
uses: docker/build-push-action@v4
- name: Setup Python & Poetry
uses: ./.github/actions/setup-python-poetry
with:
context: .
load: true
target: test
tags: ${{ env.TEST_TAG }}
cache-from: type=gha,scope=test
cache-to: type=gha,mode=max,scope=test
python-version: "3.11"
poetry-version: "1.6.1"

- name: Test
run: docker run --rm ${{ env.TEST_TAG }}
- name: Run tests
run: poetry run task test

0 comments on commit 84e5483

Please sign in to comment.