Version match correction (#33) #163
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: Test | |
on: | |
# Triggers the test workflow on push for all branches | |
push: | |
paths: | |
- "pii_codex/**" | |
- "poetry.lock" | |
- "pyproject.toml" | |
- ".github/workflows/test.yml" | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Run Tests | |
strategy: | |
matrix: | |
python-version: [ "3.9", "3.10" ] | |
os: [ubuntu-22.04, macos-latest] | |
runs-on: ${{ matrix.os }} | |
# Checkout the code, install poetry, install dependencies, | |
# and run test with coverage | |
steps: | |
- name: Environment Setup | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Global Dependencies | |
run: pip install -U pip && pip install poetry wheel | |
- name: Install Project Dependencies | |
run: | | |
poetry config virtualenvs.create true | |
make install | |
make install.extras | |
- uses: actions/checkout@master | |
- name: Run Tests | |
run: | | |
make test.coverage | |
- uses: codecov/codecov-action@v3 # Coverage report submitted only on merge to main | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
name: codecov-umbrella | |
files: ./coverage.xml | |
verbose: true |