blob: 1f4991fd7cd8d23c1567c4d57db32249b00a6d72 [file]
name: CI
on: [push, pull_request]
jobs:
Checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: symbiflow/actions/checks@main
Tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2
- name: Setup
run: |
sed -i -e's/- python/- python=${{ matrix.python-version }}/' environment.yml
cat environment.yml
# FIXME: #65 - Replace with `make-env`
./prepareenv.sh
- name: Test
run: |
TOXENV="$(echo py${{ matrix.python-version }} | sed -e's/\.//g')" .github/test.sh
- name: Upload test results
uses: actions/upload-artifact@v2
with:
name: test-results-${{ matrix.python-version }}
path: junit/python${{ matrix.python-version }}-test-results.xml
if: always()