Skip to content

Commit

Permalink
Get CI/CD working (#3)
Browse files Browse the repository at this point in the history
* Test install

* Update test

* Add setuptools as dependency

* Remove working directory flag

* Update poetry lock

* Incrememnt verison

* Remove Poetry

* Add pytest as dependency

* Make uppercase

* Roll back to previous Poetry Publish
  • Loading branch information
stkbailey authored Aug 9, 2021
1 parent cb98661 commit c968870
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/publish_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ jobs:
- uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Python Poetry Action
uses: abatilo/actions-poetry@v2.1.0
- name: Build and publish to pypi
uses: JRubics/poetry[email protected]
with:
pypi_token: ${{ secrets.pypi_api_token }}
- name: Publish Package
run: poetry publish

15 changes: 9 additions & 6 deletions .github/workflows/test_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,19 @@ name: Test Package

on: push

env:
TAP_CLOCKIFY_API_KEY: ${{ secrets.tap_clockify_api_key }}
TAP_CLOCKIFY_WORKSPACE: ${{ secrets.tap_clockify_workspace }}

jobs:
build:
test_package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Python Poetry Action
uses: abatilo/[email protected]
- name: Publish Package
run: poetry run pytest

- name: Install Package
run: pip install . pytest
- name: Test Package
run: pytest
4 changes: 2 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c968870

Please sign in to comment.