Skip to content

refactor: existing python code #178

refactor: existing python code

refactor: existing python code #178

Workflow file for this run

name: CI
on: [push]
jobs:
test:
name: ARK Resolver Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: astral-sh/setup-uv@v5
- run: |
uv sync
echo "$VIRTUAL_ENV/bin" >> $GITHUB_PATH
echo "VIRTUAL_ENV=$VIRTUAL_ENV" >> $GITHUB_ENV
- uses: dtolnay/rust-toolchain@stable
- uses: extractions/setup-just@v2
- uses: docker/setup-buildx-action@v3
- name: Run Rust unit tests
run: just test
- name: Run Python unit tests
run: just pytest
- name: Build ARK resolver image
run: just docker-build-intel
# publish only for develop and tags
publish:
name: Publish to Dockerhub
needs: [test]
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: extractions/setup-just@v2
- name: build and publish image to Dockerhub
run: |
echo ${{ secrets.DOCKER_HUB_TOKEN }} | docker login -u ${{ secrets.DOCKER_USER }} --password-stdin
just docker-publish-intel