Skip to content

Commit

Permalink
Add apikey support
Browse files Browse the repository at this point in the history
  • Loading branch information
an-li-the-dev authored and tylerflex committed Jan 20, 2023
1 parent e7c5e49 commit fb4a646
Show file tree
Hide file tree
Showing 6 changed files with 2,124 additions and 62 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'poetry'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install setuptools wheel twine build
run: poetry install
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
python -m build
python -m twine upload --repository pypi dist/*
poetry config pypi-token.pypi "$PYPI_TOKEN"
poetry build
poetry publish
13 changes: 8 additions & 5 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,21 @@ jobs:
platform: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v1
- name: Install poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox-gh-actions
pip install tox
poetry add -D tox-gh-actions=^2.0.0
poetry install
poetry run python -m pip install --upgrade pip
- name: Install precompiled gdstk
if: matrix.platform == 'windows-latest'
run: |
pip install gdstk --only-binary=gdstk
- name: Test with tox
run: tox
run: poetry run tox
Loading

0 comments on commit fb4a646

Please sign in to comment.