update assert messages in materials_test.py #288
Workflow file for this run
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
# This workflow will build, check and deploy to pypi when new tags are pushed | |
# matching "v*". | |
# It runs on multiple python3 versions on macOS, Ubuntu and Windows. | |
# Based on: https://github.com/marketplace/actions/pypi-deployment | |
name: pypi | |
# Run on push/PR/manually BUT only uploads with a tag (see below) | |
on: | |
push: | |
tags: ["v*"] | |
branches: [$default-branch] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
pypi_deploy: | |
strategy: | |
matrix: | |
os: ["ubuntu-20.04"] | |
python-version: ["3.9"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Build, check and deploy to pypi | |
uses: casperdcl/deploy-pypi@v2 | |
with: | |
password: ${{ secrets.PYPI_TOKEN }} | |
# Create source tgz | |
build: true | |
# Create wheel | |
pip: true | |
# Only upload if a tag is pushed (otherwise just build & check) | |
upload: ${{ github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') }} |