|
9 | 9 | runs-on: ubuntu-latest |
10 | 10 | strategy: |
11 | 11 | matrix: |
12 | | - python-version: [3.7, 3.8, 3.9] |
| 12 | + python-version: [3.8] |
13 | 13 | steps: |
14 | 14 | - uses: actions/checkout@v2 |
15 | 15 | - name: Set up Python ${{ matrix.python-version }} |
16 | 16 | uses: actions/setup-python@v2 |
17 | 17 | with: |
18 | 18 | python-version: ${{ matrix.python-version }} |
19 | 19 |
|
| 20 | + - name: Install poetry |
| 21 | + run: | |
| 22 | + python -m pip install --upgrade pip |
| 23 | + curl -sSL https://install.python-poetry.org | python - --version 1.2.2 |
| 24 | + echo "${HOME}/.local/bin" >> $GITHUB_PATH |
| 25 | +
|
20 | 26 | - name: Install dependencies |
21 | 27 | run: | |
22 | | - curl -sSL https://install.python-poetry.org | python - --version 1.2.1 |
23 | | - $HOME/.local/bin/poetry install --no-root |
| 28 | + poetry install --no-root |
24 | 29 |
|
25 | 30 | - name: Run tests |
26 | 31 | run: | |
27 | | - $HOME/.local/bin/poetry run pytest |
| 32 | + poetry run pytest |
28 | 33 |
|
29 | 34 | - name: Build wheels |
30 | 35 | run: | |
31 | | - $HOME/.local/bin/poetry version $(git tag --points-at HEAD) |
32 | | - $HOME/.local/bin/poetry build |
| 36 | + poetry version $(git tag --points-at HEAD) |
| 37 | + poetry build |
33 | 38 |
|
34 | 39 | - name: Test install package |
35 | 40 | run: | |
36 | | - mkdir test_install |
37 | | - cd test_install |
38 | | - $HOME/.local/bin/poetry init |
39 | | - $HOME/.local/bin/poetry add ../dist/$(ls dist/*.whl) |
| 41 | + poetry new test-install |
| 42 | + cd test-install |
| 43 | + poetry add ../dist/$(ls ../dist/*.whl) |
40 | 44 |
|
41 | | - $HOME/.local/bin/poetry run python -c "import datastream" |
| 45 | + poetry run python -c "import datastream" |
42 | 46 |
|
43 | 47 | - name: Upload |
44 | 48 | env: |
45 | 49 | USERNAME: __token__ |
46 | 50 | PASSWORD: ${{ secrets.PYPI_TOKEN }} |
47 | 51 | run: | |
48 | | - $HOME/.local/bin/poetry publish --username=$USERNAME --password=$PASSWORD |
| 52 | + poetry publish --username=$USERNAME --password=$PASSWORD |
0 commit comments