Merge branch 'main' of https://github.com/mhostert/DarkNus #158
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
name: Tests | |
on: | |
- push | |
- pull_request | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
# os: [macos-latest, ubuntu-latest, windows-latest] | |
os: [macos-latest, ubuntu-latest] | |
python-version: ["3.7", "3.8", "3.9", "3.10"] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: ‘2’ | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install tox tox-gh-actions | |
- name: Test generator and physics output | |
run: tox | |
- name: Upload Coverage to Codecov | |
uses: codecov/codecov-action@v2 | |
# - name: Generate Report | |
# run: | | |
# pip install coverage | |
# coverage run -m pytest | |
# - name: Setup tmate session | |
# if: success() || failure() | |
# uses: mxschmitt/action-tmate@v3 |