Fix python wrapper after upgrading electionguard to 1.2.3 #282
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
if: "github.ref != 'refs/heads/develop'" | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
- uses: actions/checkout@v2 | |
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 |