upgrade delphin version #34
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
# This workflow will install Python dependencies and run tests with a single version of Python | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
name: Python test | |
on: [push] | |
# pull_request: | |
# branches: [ "trunk" ] | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
# Set up Python environment (with virtualenv) | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' # or whatever version you're using | |
# Create a virtual environment (optional but recommended) | |
- name: Create virtual environment | |
run: | | |
python -m venv venv | |
source venv/bin/activate | |
# Install dependencies (including delphin and ace) | |
- name: Install Delphin | |
run: | | |
source venv/bin/activate | |
pip install --upgrade pip | |
pip install delphin==1.4.0 # This will install both delphin and ace | |
# Ensure that ace can be imported from Python | |
- name: Test Python import | |
run: | | |
source venv/bin/activate | |
python -m pip show delphin | |
python -m pip freeze | |
python -c "from delphin import ace; print('ace imported successfully')" | |
# Run your tests that use ace | |
- name: Run tests | |
run: | | |
source venv/bin/activate | |
python your_test_script.py |