TheCGO / fiscalsim-us

FiscalSim US is a microsimulation model of the US federal and state tax and benefit system relating to households and individuals.
https://thecgo.github.io/fiscalsim-us/
GNU Affero General Public License v3.0
11 stars 12 forks source link

GH Actions to be reinstated #8

Closed rickecon closed 1 year ago

rickecon commented 1 year ago

GitHub Actions do not work in a private repository unless we pay for it. So this is all for discussion once this repo is public. In PR #7, we removed one job and one step from the GitHub Actions file push.yaml.

  1. Removed the Publish job because we are only going to publish the fiscalsim_us package once the repository is open source. Code was the following:
    Publish:
    runs-on: ubuntu-latest
    if: |
      (github.repository == 'TheCGO/fiscalsim-us')
      && (github.event.head_commit.message == 'Update FiscalSim-US')
    steps:
      - name: Checkout repo
        uses: actions/checkout@v3
      - name: Setup Python
        uses: actions/setup-python@v4
        with:
          python-version: 3.7
      - name: Publish a git tag
        run: ".github/publish-git-tag.sh || true"
      - name: Install package
        run: make install
      - name: Build package
        run: make
      - name: Publish a Python distribution to PyPI
        uses: pypa/gh-action-pypi-publish@release/v1
        with:
          user: __token__
          password: ${{ secrets.PYPI }}
          skip_existing: true
  2. Removed the Deploy documentation step of the Test job because we are not ready to deploy our documentation right now.
      - name: Deploy documentation
        if: matrix.os == 'ubuntu-latest'
        uses: JamesIves/github-pages-deploy-action@releases/v3
        with:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          BRANCH: gh-pages
          FOLDER: docs/_build/html

For both (1) and (2), we want to add them as soon as the model is open-source.

rickecon commented 1 year ago

This issue is resolved in PR #23. Closing.