Removed test run output redirect to github_step_summary #70
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "DEV Test and Publish" | |
on: | |
push: | |
branches: | |
- dev | |
env: | |
FACTIVA_USERKEY: ${{secrets.FACTIVA_USERKEY}} | |
FACTIVA_CLIENTID: ${{secrets.FACTIVA_CLIENTID}} | |
FACTIVA_USERNAME: ${{secrets.FACTIVA_USERNAME}} | |
FACTIVA_PASSWORD: ${{secrets.FACTIVA_PASSWORD}} | |
FACTIVA_CLIENT_EMAIL: ${{vars.FACTIVA_CLIENT_EMAIL}} | |
FACTIVA_SNAPSHOTID: ${{vars.FACTIVA_SNAPSHOTID}} | |
FACTIVA_SNAPSHOT_UPDATEID: ${{vars.FACTIVA_SNAPSHOT_UPDATEID}} | |
FACTIVA_STREAMID: ${{secrets.FACTIVA_STREAMID}} | |
FACTIVA_WHERE: ${{vars.FACTIVA_WHERE}} | |
FACTIVA_SUBSCRIPTIONID: ${{secrets.FACTIVA_SUBSCRIPTIONID}} | |
FACTIVA_LOGLEVEL: ${{vars.FACTIVA_LOGLEVEL}} | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
ref: 'dev' | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10.9' | |
- name: Install latest PIP | |
run: | | |
python -m pip install --upgrade pip | |
- name: Install Dependencies | |
run: | | |
python -m pip install pytest pytest-cov | |
- name: Setup factiva-analytics <DEV> (this repo) | |
run: | | |
python -m pip install . | |
- name: pytest | |
run: pytest test/ | |
build: | |
name: Build and publish | |
runs-on: ubuntu-latest | |
needs: [test] | |
permissions: | |
id-token: write | |
steps: | |
- name : Checkout code | |
uses : actions/checkout@v4 | |
with: | |
ref: 'dev' | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10.9' | |
- name: Install latest pip, setuptools, twine + wheel | |
run: | | |
python -m pip install --upgrade pip setuptools wheel >> $GITHUB_STEP_SUMMARY | |
- name: Build wheels | |
run: | | |
python setup.py bdist_wheel >> $GITHUB_STEP_SUMMARY | |
python setup.py sdist >> $GITHUB_STEP_SUMMARY | |
- name: GitHub Repo Artifact Upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Wheel_library | |
path: dist/ | |
- name: Publish package to TestPyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
repository-url: https://test.pypi.org/legacy/ |