Skip to content

Add sca20* tests

Add sca20* tests #8

# This is a basic workflow to help you get started with Actions
name: Test Testpypi
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the develop branch
push:
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
lint-test:
# The type of runner that the job will run on
name: Run tests on testpypi
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Setup Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install cwtraces
run: >-
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ cwtraces
- name: Run tests
run: |
cd tests
for i in *.py; do python "$i"; done
lint-normal:
# The type of runner that the job will run on
name: Run tests on pypi
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Setup Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install cwtraces
run: >-
pip install cwtraces
- name: Run tests
run: |
cd tests
for i in *.py; do python "$i"; done