Skip to content

Commit

Permalink
test: gha
Browse files Browse the repository at this point in the history
  • Loading branch information
jjjermiah committed Dec 16, 2023
1 parent 5ef4130 commit a218529
Showing 1 changed file with 28 additions and 26 deletions.
54 changes: 28 additions & 26 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,47 @@ name: Unit Tests
# only run on pushes to main or pull requests
on:
push:
branches: [ main ]
# push to any branch
branches:
- '*'
pull_request:
branches: [ main ]

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

# 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 package
# run: poetry install
- name: Install package
run: poetry install

# - name: Test with pytest
# run: poetry run pytest
- name: Test with pytest
run: poetry run pytest

# - name: Use Codecov to track coverage
# uses: codecov/codecov-action@v2
# with:
# file: ./coverage.xml
- name: Use Codecov to track coverage
uses: codecov/codecov-action@v2
with:
file: ./coverage.xml

# - name: Build documentation
# run: poetry run make html --directory docs/
- name: Build documentation
run: poetry run make html --directory docs/

# needs: Continuous-Integration
Continuous-Deployment:
needs: Continuous-Integration
if: github.ref == 'refs/heads/main' # github.event_name == 'push' &&

# Set up operating system
Expand Down

0 comments on commit a218529

Please sign in to comment.