Skip to content

Commit

Permalink
Run CI on different python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
cassiobotaro committed Oct 20, 2021
1 parent 0d2c132 commit 662fa0d
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,30 @@ jobs:

test:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v2

- name: Set up Python 3.8
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8.5
python-version: ${{ matrix.python }}

- name: Install Poetry
uses: snok/[email protected]
uses: snok/install-poetry@v1
with:
virtualenvs-in-project: false
virtualenvs-path: ~/.virtualenvs

- name: Cache Poetry virtualenv
uses: actions/cache@v1
id: cache
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v2
with:
path: ~/.virtualenvs
key: poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
poetry-${{ hashFiles('**/poetry.lock') }}
- name: Set Poetry config
run: |
poetry config virtualenvs.in-project false
poetry config virtualenvs.path ~/.virtualenvs
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}

- name: Install Dependencies
run: make install-dev
Expand Down

0 comments on commit 662fa0d

Please sign in to comment.