Skip to content

Migrate to PyEnv in GitHub Actions so that we can still test on older… #44

Migrate to PyEnv in GitHub Actions so that we can still test on older…

Migrate to PyEnv in GitHub Actions so that we can still test on older… #44

Workflow file for this run

name: Run Tox Tests
on:
push:
branches:
- "*"
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ['2.7', '3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
pandas-presence: ['with_pandas', 'without_pandas']
env:
PYTHON_VERSION: ${{ matrix.python-version }}
PANDAS_PRESENCE: ${{ matrix.pandas-presence }}
steps:
- uses: actions/checkout@v2
uses: gabrielfalcao/pyenv-action@v17
with:

Check failure on line 22 in .github/workflows/tox.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/tox.yml

Invalid workflow file

You have an error in your yaml syntax on line 22
default: "${{ matrix.python-version }}"
command: |
pip install -U pip # upgrade pip after installing python
- name: Check Pyenv
run: |
pyenv versions
- name: Install dependencies
run: |
pip install tox tox-gh-actions
- name: Test with tox
run: |
PYTHON_ENV="py$(echo $PYTHON_VERSION | sed 's/\.//;s/\-dev//')"
tox -e "${PYTHON_ENV}-${PANDAS_PRESENCE}"
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
file: ./coverage.xml
flags: unittests
env_vars: PYTHON_VERSION,PANDAS_PRESENCE