Skip to content

Commit

Permalink
added unit tests back
Browse files Browse the repository at this point in the history
  • Loading branch information
jjjermiah committed Feb 3, 2024
1 parent 60dba1e commit ff9cf33
Showing 1 changed file with 46 additions and 46 deletions.
92 changes: 46 additions & 46 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,61 +9,61 @@ on:
branches: [ main ]

jobs:
# Continuous-Integration:
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [ubuntu-latest, macos-latest, macos-14]
# python-version: ["3.10", "3.12", "3.11"]
Continuous-Integration:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, macos-14]
python-version: ["3.12", "3.11"] # "3.10",

# steps:
# - uses: actions/checkout@v3
steps:
- uses: actions/checkout@v3

# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

# - name: Install poetry
# uses: snok/install-poetry@v1
- name: Install poetry
uses: snok/install-poetry@v1

# - name: Install dependencies
# run: poetry install
- name: Install dependencies
run: poetry install

# - name: Test with pytest
# run: |
# poetry run pytest -n 2 --cov --cov-report xml:coverage-report/coverage.xml
- name: Test with pytest
run: |
poetry run pytest -n 2 --cov --cov-report xml:coverage-report/coverage.xml
# - name: Build documentation
# run: poetry run make html --directory docs/
- name: Build documentation
run: poetry run make html --directory docs/

# - name: Upload coverage report
# uses: actions/upload-artifact@v2
# with:
# name: coverage-report
# path: coverage-report
- name: Upload coverage report
uses: actions/upload-artifact@v2
with:
name: coverage-report
path: coverage-report

# Codecov:
# needs: Continuous-Integration
# runs-on: ubuntu-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v3
Codecov:
needs: Continuous-Integration
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

# - name: Download coverage.xml artifact
# uses: actions/download-artifact@v2
# with:
# name: coverage-report
# path: coverage-report
- name: Download coverage.xml artifact
uses: actions/download-artifact@v2
with:
name: coverage-report
path: coverage-report

# - name: Use Codecov to track coverage
# uses: codecov/codecov-action@v3
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# files: ./coverage-report/coverage.xml
# fail_ci_if_error: true
# verbose: true
# name: codecov-umbrella
- name: Use Codecov to track coverage
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage-report/coverage.xml
fail_ci_if_error: true
verbose: true
name: codecov-umbrella



Expand Down Expand Up @@ -204,7 +204,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, macos-14]
python-version: ["3.10", "3.12", "3.11"]
python-version: ["3.12", "3.11"]

steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit ff9cf33

Please sign in to comment.