Skip to content

Commit

Permalink
Merge pull request #76 from anancarv/fix-gh
Browse files Browse the repository at this point in the history
Fix github actions
  • Loading branch information
anancarv authored Dec 3, 2020
2 parents e084120 + 73457a0 commit d317271
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 23 deletions.
28 changes: 11 additions & 17 deletions .github/workflows/check_code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,16 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@350318022136c903b1dcf90854e65700f78938e1
uses: actions/setup-python@v2
with:
python-version: 3.7

- name: Install Poetry
uses: dschep/install-poetry-action@db2e37f48d1b1cd1491c4590338ebc7699adb425
uses: snok/install-poetry@v1.1.1
with:
version: 1.0.2

- name: Set Poetry config
run: |
poetry config virtualenvs.in-project false
poetry config virtualenvs.path ~/.virtualenvs
version: 1.1.4
virtualenvs-in-project: false
virtualenvs-path: ~/.virtualenvs

- name: Install Dependencies
run: poetry install
Expand All @@ -34,25 +31,22 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
python-version: [3.6, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v1

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

- name: Install Poetry
uses: dschep/install-poetry-action@db2e37f48d1b1cd1491c4590338ebc7699adb425
uses: snok/install-poetry@v1.1.1
with:
version: 1.0.2

- name: Set Poetry config
run: |
poetry config virtualenvs.in-project false
poetry config virtualenvs.path ~/.virtualenvs
version: 1.1.4
virtualenvs-in-project: false
virtualenvs-path: ~/.virtualenvs

- name: Install Dependencies
run: poetry install
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,18 @@ jobs:
- uses: actions/checkout@v1

- name: Set up Python 3.6
uses: actions/setup-python@350318022136c903b1dcf90854e65700f78938e1
uses: actions/setup-python@v2
with:
python-version: 3.6

- name: Install Poetry
uses: dschep/install-poetry-action@db2e37f48d1b1cd1491c4590338ebc7699adb425
uses: snok/install-poetry@v1.1.1
with:
version: 1.0.2
version: 1.1.4
virtualenvs-in-project: false
virtualenvs-path: ~/.virtualenvs

- name: Set Poetry config
run: |
poetry config virtualenvs.in-project false
poetry config virtualenvs.path ~/.virtualenvs
poetry config pypi-token.pypi "${{ secrets.PYPI_TOKEN }}"

- name: Build
Expand Down

0 comments on commit d317271

Please sign in to comment.