Skip to content

Document README files (#312) #330

Document README files (#312)

Document README files (#312) #330

name: "[CI] ElectionGuard Voting Scheme Python Wrapper"
on:
pull_request:
paths:
- ".github/workflows/voting-scheme-electionguard-python-wrapper-workflow.yml"
- "voting_schemes/electionguard/python-wrapper/**"
push:
branches:
- develop
- main
env:
CI: "true"
SIMPLECOV: "true"
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
defaults:
run:
working-directory: ./voting_schemes/electionguard/python-wrapper
jobs:
tests:
name: Test code
runs-on: ubuntu-latest
container:
image: decidim/ruby-node-python-electionguard:ruby-3.1.1-node-16-python-3.8.11-electionguard-1.2.3
steps:
- uses: rokroskar/workflow-run-cleanup-action@v0.3.2
if: "github.ref != 'refs/heads/develop'"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- uses: actions/checkout@v4
with:
fetch-depth: 1
submodules: true
- name: Add Poetry to path
run: echo "$HOME/.poetry/bin" >> $GITHUB_PATH
- name: Install dependencies
run: make install
- name: Run tests
run: make test