Skip to content

deps: remove twine #1020

deps: remove twine

deps: remove twine #1020

Workflow file for this run

name: test
on:
push:
branches:
- main
pull_request:
# workflow_dispatch allows a user to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
run:
continue-on-error: True
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.9, "3.10", "3.11", "3.12"]
timeout-minutes: 30
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@master
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
# We deduce the Poetry version from the lockfile. Please note that we have
# to prepend "python" because PowerShell is not able to execute directly a
# python script with a shebang.
run: pip install poetry==$(python scripts/estimate_poetry_version.py)
- name: Install tox
# We deduce the tox version from the lockfile. Please note that we have
# to prepend "python" because PowerShell is not able to execute directly a
# python script with a shebang.
# In fact, this workflow is never run on Windows, but let's prioritize
# consistency with the test.yml workflow.
run: pip install tox==$(poetry export --only=dev --without-hashes | python scripts/estimate_tox_version.py)
# # set up environment depending on the platform in use
# - if: matrix.os == 'ubuntu-latest'
# name: Install dependencies (ubuntu-latest)
# run: ...
# - if: matrix.os == 'macos-latest'
# name: Install dependencies (macos-latest)
# run: ...
# - if: matrix.os == 'windows-latest'
# name: Install dependencies (windows-latest)
# env:
# ACTIONS_ALLOW_UNSECURE_COMMANDS: true
# run: ...
- if: ${{ (matrix.os == 'ubuntu-latest') || (matrix.os == 'macos-latest') }}
name: Unit tests and coverage (ubuntu-latest, macos-latest)
run: |
pyver=`echo ${{ matrix.python-version }} | tr -d "."`
tox -e py${pyver} -- -m 'not e2e'
tox -e py${pyver}-nb
- if: ${{ (matrix.os == 'ubuntu-latest') || (matrix.os == 'macos-latest') }}
name: Notebook tests (ubuntu-latest, macos-latest)
run: |
pyver=`echo ${{ matrix.python-version }} | tr -d "."`
tox -e py${pyver}-nb
- if: matrix.os == 'windows-latest'
name: Unit tests and coverage (windows-latest)
run: |
$pyver = "${{ matrix.python-version }}" -replace '\.'
tox -e "py$pyver" -- -m 'not e2e' | Tee-Object output.txt -ErrorAction SilentlyContinue
.\scripts\check-tox-output.ps1 output.txt
- if: matrix.os == 'windows-latest'
name: Notebook tests (windows-latest)
run: |
$pyver = "${{ matrix.python-version }}" -replace '\.'
tox -e "py$pyver-nb" | Tee-Object output.txt -ErrorAction SilentlyContinue
.\scripts\check-tox-output.ps1 output.txt
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: false