Skip to content

Commit

Permalink
Use pipenv/pytest in github actions
Browse files Browse the repository at this point in the history
Since python setup.py install and setup.py test are also firmly
deprecated, use pipenv and pytest directly.
  • Loading branch information
s-t-e-v-e-n-k committed Mar 29, 2022
1 parent 2955541 commit 86dc71b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,20 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: ["3.7", "3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: python setup.py install
run: |
pip install pipenv
pipenv install --python ${{ matrix.python-version }} --dev
- name: Lint with flake8
run: |
Expand All @@ -28,7 +30,9 @@ jobs:
flake8 . --count --exit-zero --statistics
- name: Test with pytest
run: python setup.py test
run: |
pip install pytest
pipenv run pytest
- name: Generate coverage
run: |
Expand Down

0 comments on commit 86dc71b

Please sign in to comment.