Skip to content

tests - fix actions upload/download - part 2 because i forgot to save… #31

tests - fix actions upload/download - part 2 because i forgot to save…

tests - fix actions upload/download - part 2 because i forgot to save… #31

Workflow file for this run

name: Publish Dev
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.9', '3.10', '3.11' ]
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3.5.0
- name: Set up Python 🐍
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install tox 🧰
run: |
python -m pip install --upgrade pip
python -m pip install tox
- name: Lint Syntax 🧪🖋
run: tox -e lint
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.9', '3.10', '3.11' ]
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3.5.0
- name: Set up Python 🐍
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install tox 🧰
run: |
python -m pip install --upgrade pip
python -m pip install tox
- name: Test & Coverage 🧪
run: tox -e test
- name: Upload Coverage Report 🔺📊
uses: codecov/codecov-action@v4.5.0
with:
flags: pytests
name: Python ${{ matrix.python-version }}
env_vars: PYTHON
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
build:
needs:
- lint
- test
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3.5.0
with:
fetch-depth: 0
persist-credentials: false
- name: Set up Python 🐍
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install tox 🧰
run: |
python -m pip install --upgrade pip
python -m pip install tox
- name: Build 🛠
run: tox -e build
- name: Upload Distribution Artifacts 🔺
uses: actions/upload-artifact@v4.4.0
with:
name: dist
path: dist/
publish:
needs:
- build
runs-on: ubuntu-latest
steps:
- name: Download Distribution 🔻
if: github.event_name == 'push'
uses: uses: actions/download-artifact@v4.1.8

Check failure on line 100 in .github/workflows/push-main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/push-main.yml

Invalid workflow file

You have an error in your yaml syntax on line 100
with:
name: dist
path: dist/
- name: Publish Distribution to Test PyPI 📦
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.test_pypi_password }}
repository-url: https://test.pypi.org/legacy/