-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (25 loc) · 750 Bytes
/
pyenv.yml
File metadata and controls
27 lines (25 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Test pyenv
on: [push, pull_request]
jobs:
job:
name: "Pytest with pyenv"
runs-on: ubuntu-latest
strategy:
matrix:
python:
- 3.9
steps:
- uses: actions/checkout@v3
- name: Install python version
uses: gabrielfalcao/pyenv-action@v13
with:
default: "${{ matrix.python }}"
command: pip install -U pip # upgrade pip after installing python
- name: Install and configure Poetry
uses: snok/install-poetry@v1
- name: Install pyenv-virtualenv
run: git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
- name: Install dependencies
run: pip install -e '.[test]'
- name: Run tests
run: pytest