Skip to content

Commit

Permalink
defined new github action for running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ibressler committed Jun 22, 2021
1 parent 8a2ef2d commit 3589299
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Testing

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]

# 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 "testing"
testing:
name: Testing (${{ matrix.python-version }}, ${{ matrix.os }})
# The type of runner that the job will run on (each of the os matrix below)
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.x", "3.8"]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- name: Conda info
shell: bash -l {0}
run: conda info
- name: Conda list
shell: pwsh
run: conda list
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Dummy
shell: bash -l {0}
run: ls -la

0 comments on commit 3589299

Please sign in to comment.