Skip to content

Attempt to fix docker build #939

Attempt to fix docker build

Attempt to fix docker build #939

Workflow file for this run

name: Tests
on:
pull_request:
push:
branches:
- main
jobs:
tests:
name: "Test"
runs-on: "ubuntu-22.04"
steps:
- name: "Check out source code"
uses: "actions/checkout@v4"
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v2
with:
enable-cache: true
version: latest
- name: Run tests
run: ./test.sh
- name: "Upload coverage report"
if: github.repository == 'artefactual-labs/a3m'
uses: "codecov/codecov-action@v4"
with:
files: ./coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
files: ./junit.xml
token: ${{ secrets.CODECOV_TOKEN }}
e2e:
name: "Run E2E tests"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and cache
uses: docker/build-push-action@v5
with:
context: .
tags: a3m:latest
push: false
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Run test
run: |
docker image ls
docker run \
--rm \
--entrypoint=python \
--env=A3M_DEBUG=yes \
a3m:latest \
-m a3m.cli.client \
--name=MARBLES \
https://github.com/artefactual/archivematica-sampledata/raw/master/SampleTransfers/Images/pictures/MARBLES.TGA