Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Migration to Codeberg #69

Migration to Codeberg

Migration to Codeberg #69

Workflow file for this run

name: Mac OS X latest
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [main]
pull_request:
branches: [main]
workflow_run:
workflows: ["Pip Package"]
types: [completed]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
runs-on: macos-latest
strategy:
matrix:
python-version: [3.8]
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# - name: Cache pip ${{ matrix.python-version }}
# uses: actions/cache@v2
# with:
# path: ~/Library/Caches/pip
# key: ${{ runner.os }}-${{ matrix.python-version }}-pip-pipenv
# restore-keys: |
# ${{ runner.os }}-${{ matrix.python-version }}-pip-pipenv
# - name: Cache pipenv ${{ matrix.python-version }}
# uses: actions/cache@v2
# with:
# path: ~/.local/share/virtualenvs
# key: ${{ runner.os }}-${{ matrix.python-version }}-pipenv-${{ hashFiles('Pipfile.lock') }}
# restore-keys: |
# ${{ runner.os }}-${{ matrix.python-version }}-pipenv-
- name: Setup pipenv ${{ matrix.python-version }}
run: python -m pip install --upgrade pipenv
- name: Install dependencies using pipenv ${{ matrix.python-version }}
run: |
cd $GITHUB_WORKSPACE
python -m pipenv --python ${{ matrix.python-version }} install --dev
# - name: Check if Working ${{ matrix.python-version }}
# run: |
# cd $GITHUB_WORKSPACE
# pipenv run python -m tzolkin_calendar --version
- name: Run tzolkin-calendar ${{ matrix.python-version }}
run: |
cd $GITHUB_WORKSPACE
pipenv run python -m tzolkin_calendar -y
# - uses: actions/upload-artifact@v2
# if: ${{ always() }}
# with:
# name: OSX Buildnis Debug Log
# path: log_file.txt
use-package:
runs-on: macos-latest
strategy:
matrix:
python-version: [3.8, 3.9]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# - name: Cache pip ${{ matrix.python-version }}
# uses: actions/cache@v2
# with:
# path: ~/.cache/pip
# key: ${{ runner.os }}-${{ matrix.python-version }}-pip-tzolkin-calendar
# restore-keys: |
# ${{ runner.os }}-${{ matrix.python-version }}-pip-tzolkin-calendar
- name: Install tzolkin-calendar package ${{ matrix.python-version }}
run: python -m pip install --upgrade tzolkin-calendar
- name: Delete Source ${{ matrix.python-version }}
run: |
cd $GITHUB_WORKSPACE
rm -rf tzolkin_calendar/
# - name: Check if Pkg Working ${{ matrix.python-version }}
# run: |
# python -m tzolkin_calendar --version
- name: Run tzolkin-calendar Pkg ${{ matrix.python-version }}
run: |
cd $GITHUB_WORKSPACE
python -m tzolkin_calendar -y
# - uses: actions/upload-artifact@v2
# if: ${{ always() }}
# with:
# name: OSX Buildnis Pkg Debug Log
# path: log_file.txt