Skip to content

Reformat accordnig to newest black version #105

Reformat accordnig to newest black version

Reformat accordnig to newest black version #105

Workflow file for this run

name: Test
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Extract branch name
shell: bash
run: echo "tag=$(echo ${GITHUB_REF#refs/heads/} | tr / -)" >> $GITHUB_OUTPUT
id: extract_branch
- name: "Pull core image"
shell: bash
run: |
if docker pull tomlegkov/marine-core:${{ steps.extract_branch.outputs.tag }} > /dev/null 2>&1; then
echo "tag=${{ steps.extract_branch.outputs.tag }}" >> $GITHUB_OUTPUT
else
echo "tag=marine" >> $GITHUB_OUTPUT
fi
id: detect_tag
- name: "Build marine-python docker image"
run: docker build --build-arg MARINE_CORE_TAG=${{ steps.detect_tag.outputs.tag }} --pull -t marine-python .
- name: "Extract wheel from docker image"
run: docker run -i --rm -v $(pwd)/dist:/io marine-python sh -c "cp /dist/marine*.whl /io/"
- uses: actions/upload-artifact@v6
with:
path: dist/*.whl
- name: "Run marine-python tests"
run: docker run -i --rm marine-python